Class StringStatisticImpl
- java.lang.Object
-
- org.glassfish.external.statistics.impl.StatisticImpl
-
- org.glassfish.external.statistics.impl.StringStatisticImpl
-
- All Implemented Interfaces:
InvocationHandler,Statistic,StringStatistic
public final class StringStatisticImpl extends StatisticImpl implements StringStatistic, InvocationHandler
- Author:
- Sreenivas Munnangi
-
-
Field Summary
-
Fields inherited from class org.glassfish.external.statistics.impl.StatisticImpl
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
-
-
Constructor Summary
Constructors Constructor Description StringStatisticImpl(String name, String unit, String desc)StringStatisticImpl(String str, String name, String unit, String desc, long sampleTime, long startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrent()Returns the String value of the statisticMapgetStaticAsMap()StringStatisticgetStatistic()Objectinvoke(Object proxy, Method m, Object[] args)voidreset()voidsetCurrent(String str)StringtoString()-
Methods inherited from class org.glassfish.external.statistics.impl.StatisticImpl
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.external.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
-
-
-
Method Detail
-
getStatistic
public StringStatistic getStatistic()
-
getStaticAsMap
public Map getStaticAsMap()
- Overrides:
getStaticAsMapin classStatisticImpl
-
toString
public String toString()
- Overrides:
toStringin classStatisticImpl
-
getCurrent
public String getCurrent()
Description copied from interface:StringStatisticReturns the String value of the statistic- Specified by:
getCurrentin interfaceStringStatistic
-
setCurrent
public void setCurrent(String str)
-
reset
public void reset()
- Overrides:
resetin classStatisticImpl
-
-