1 package javax.management.j2ee;
2
3 /**
4 * Base Model for a Statistic Information.
5 *
6 * @author <a href="mailto:marc@jboss.org">Marc Fleury</a>
7 * @author <a href="mailto:andreas@jboss.org">Andreas Schaefer</a>
8 * @version $Revision: 1.1 $
9 *
10 * <p><b>Revisions:</b>
11 *
12 * <p><b>200112009 Andreas Schaefer:</b>
13 * <ul>
14 * <li> Adjustment to the new JBoss guide lines and also adjustments
15 * to the latest JSR-77 specification
16 * </ul>
17 **/
18 public interface Statistic
19 {
20 // Constants -----------------------------------------------------
21
22 // Public --------------------------------------------------------
23
24 /**
25 * @return Name of the Statistics
26 **/
27 public String getName();
28
29 /**
30 * @return Unit of Measurement. For TimeStatistics valid values are "HOUR",
31 * "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND", "NANOSECOND"
32 **/
33 public String getUnit();
34
35 /**
36 * @return A human-readable description
37 **/
38 public String getDescription();
39
40 /**
41 * @return The time the first measurment was taken represented as a long, whose
42 * value is the number of milliseconds since January 1, 1970, 00:00:00.
43 **/
44 public long getStartTime();
45
46 /**
47 * @return The time the most recent measurment was taken represented as a long,
48 * whose value is the number of milliseconds since January 1, 1970, 00:00:00.
49 **/
50 public long getLastSampleTime();
51
52 // Package protected ---------------------------------------------
53
54 // Protected -----------------------------------------------------
55
56 // Static inner classes -------------------------------------------------
57 }