|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 java.lang.String |
description
|
protected long |
lastSampleTime
|
protected java.lang.String |
name
|
protected long |
startTime
|
protected java.lang.String |
units
|
Constructor Summary | |
StatisticImpl(java.lang.String name,
java.lang.String units,
java.lang.String description)
Create a named Statistic. |
Method Summary | |
java.lang.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. |
java.lang.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. |
java.lang.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 |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected java.lang.String units
protected java.lang.String description
protected long startTime
protected long lastSampleTime
Constructor Detail |
public StatisticImpl(java.lang.String name, java.lang.String units, java.lang.String description)
name
- Name of the statisticunits
- Unit description used in this statisticdescription
- Human description of the statisticMethod Detail |
public java.lang.String getName()
Statistic (src)
getName
in interface Statistic (src)
public java.lang.String getUnit()
Statistic (src)
getUnit
in interface Statistic (src)
public java.lang.String getDescription()
Statistic (src)
getDescription
in interface Statistic (src)
public long getStartTime()
Statistic (src)
getStartTime
in interface Statistic (src)
public long getLastSampleTime()
Statistic (src)
getLastSampleTime
in interface Statistic (src)
public void reset()
public void set()
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |