|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.management.j2ee.statistics.StatisticImpl
JBoss Implementation of the base Model for a Statistic Information
| Field Summary | |
protected String |
description
|
protected long |
lastSampleTime
|
protected String |
name
|
protected long |
startTime
|
protected String |
units
|
| Constructor Summary | |
StatisticImpl(String name,
String units,
String description)
Create a named Statistic. |
|
| Method Summary | |
String |
getDescription()
A human-readable description of the Statistic. |
long |
getLastSampleTime()
The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00. |
String |
getName()
The name of this Statistic. |
long |
getStartTime()
The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00. |
String |
getUnit()
The unit of measurement for this Statistic. |
void |
reset()
Reset the lastSampleTime and startTime to the current time |
void |
set()
Update the lastSampleTime and startTime on first call |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String name
protected String units
protected String description
protected long startTime
protected long lastSampleTime
| Constructor Detail |
public StatisticImpl(String name, String units, String description)
name - Name of the statisticunits - Unit description used in this statisticdescription - Human description of the statistic| Method Detail |
public String getName()
javax.management.j2ee.statistics.Statistic
getName in interface javax.management.j2ee.statistics.Statisticpublic String getUnit()
javax.management.j2ee.statistics.Statistic
getUnit in interface javax.management.j2ee.statistics.Statisticpublic String getDescription()
javax.management.j2ee.statistics.Statistic
getDescription in interface javax.management.j2ee.statistics.Statisticpublic long getStartTime()
javax.management.j2ee.statistics.Statistic
getStartTime in interface javax.management.j2ee.statistics.Statisticpublic long getLastSampleTime()
javax.management.j2ee.statistics.Statistic
getLastSampleTime in interface javax.management.j2ee.statistics.Statisticpublic void reset()
public void set()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||