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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final StringStatistic
private String
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
ConstructorsConstructorDescriptionStringStatisticImpl
(String name, String unit, String desc) StringStatisticImpl
(String str, String name, String unit, String desc, long sampleTime, long startTime) -
Method Summary
Modifier and TypeMethodDescriptionReturns the String value of the statisticvoid
reset()
void
setCurrent
(String str) toString()
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
-
Field Details
-
str
-
initStr
-
ss
-
-
Constructor Details
-
StringStatisticImpl
-
StringStatisticImpl
-
-
Method Details
-
getStatistic
-
getStaticAsMap
- Overrides:
getStaticAsMap
in classStatisticImpl
-
toString
- Overrides:
toString
in classStatisticImpl
-
getCurrent
Description copied from interface:StringStatistic
Returns the String value of the statistic- Specified by:
getCurrent
in interfaceStringStatistic
-
setCurrent
-
reset
public void reset()- Overrides:
reset
in classStatisticImpl
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-