public final class StringStatisticImpl extends StatisticImpl implements StringStatistic, InvocationHandler
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
Constructor and Description |
---|
StringStatisticImpl(String name,
String unit,
String desc) |
StringStatisticImpl(String str,
String name,
String unit,
String desc,
long sampleTime,
long startTime) |
Modifier and Type | Method and Description |
---|---|
String |
getCurrent()
Returns the String value of the statistic
|
Map |
getStaticAsMap() |
StringStatistic |
getStatistic() |
Object |
invoke(Object proxy,
Method m,
Object[] args) |
void |
reset() |
void |
setCurrent(String str) |
String |
toString() |
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public StringStatisticImpl(String str, String name, String unit, String desc, long sampleTime, long startTime)
public StringStatistic getStatistic()
public Map getStaticAsMap()
getStaticAsMap
in class StatisticImpl
public String toString()
toString
in class StatisticImpl
public String getCurrent()
StringStatistic
getCurrent
in interface StringStatistic
public void setCurrent(String str)
public void reset()
reset
in class StatisticImpl
Copyright © 2017 Oracle. All rights reserved.