|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sensor.timer.TimerStatistics
Thread-safe, refreshable snapshot view to the internally managed TimerData
representing the timing values as they were when the refresh()
method was last called.
Method Summary | |
long |
getAverageTime()
Returns the average time (in milliseconds) measured until the last call to refresh() . |
List |
getChildren()
|
String |
getId()
Returns the string that uniquely identifies one instance of SensorStatistics. |
Set |
getLabels()
Returns a Set<String> of all labels associated with an instance of SensorStatistics. |
long |
getMaximumTime()
Returns the maximum time (in milliseconds) measured until the last call to refresh() . |
long |
getMinimumTime()
Returns the minimum time (in milliseconds) measured until the last call to refresh() . |
long |
getNumberOfHits()
Returns the number of hits counted until the last call to refresh() . |
long |
getStandardDeviation()
Returns the standard deviation (in milliseconds) measured until the last call to refresh() . |
long |
getSumOfSquaresOfTimes()
Returns the sumOfSquaresOfTimes. |
long |
getTimeOfFirstUpdate()
Returns the timeOfFirstUpdate in millseconds since the usual 01-01-1970 00:00 UTC. |
long |
getTimeOfLastUpdate()
Returns the timeOfLastUpdate in millseconds since the usual 01-01-1970 00:00 UTC. |
long |
getTotalTime()
Returns the total time (in milliseconds) measured until the last call to refresh() . |
boolean |
hasChildren()
Returns true if this instance has one or more child instances. |
void |
refresh()
Refreshes this instances and all its children. |
void |
reset()
Resets the statistics to their default values. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public String getId()
SensorStatistics
getId
in interface SensorStatistics
SensorStatistics.getId()
public Set getLabels()
SensorStatistics
getLabels
in interface SensorStatistics
SensorStatistics.getLabels()
public void refresh()
refresh
in interface SensorStatistics
SensorStatistics.refresh()
public void reset()
SensorStatistics
reset
in interface SensorStatistics
SensorStatistics.reset()
public boolean hasChildren()
public List getChildren()
public long getNumberOfHits()
refresh()
.
refresh()
.public long getTotalTime()
refresh()
.
refresh()
.public long getAverageTime()
refresh()
.
refresh()
.public long getStandardDeviation()
refresh()
.
refresh()
.public long getSumOfSquaresOfTimes()
public long getMinimumTime()
refresh()
.
refresh()
.public long getMaximumTime()
refresh()
.
refresh()
.public long getTimeOfFirstUpdate()
public long getTimeOfLastUpdate()
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |