Class CountStatisticImpl
java.lang.Object
org.glassfish.external.statistics.impl.StatisticImpl
org.glassfish.external.statistics.impl.CountStatisticImpl
- All Implemented Interfaces:
InvocationHandler,CountStatistic,Statistic
public final class CountStatisticImpl
extends StatisticImpl
implements CountStatistic, 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
ConstructorsConstructorDescriptionCountStatisticImpl(long countVal, String name, String unit, String desc, long sampleTime, long startTime) CountStatisticImpl(String name, String unit, String desc) -
Method Summary
Methods inherited from class org.glassfish.external.statistics.impl.StatisticImpl
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.external.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
Constructor Details
-
CountStatisticImpl
-
CountStatisticImpl
-
-
Method Details
-
getStatistic
-
getStaticAsMap
- Overrides:
getStaticAsMapin classStatisticImpl
-
toString
- Overrides:
toStringin classStatisticImpl
-
getCount
public long getCount()Description copied from interface:CountStatisticThe count since the last reset.- Specified by:
getCountin interfaceCountStatistic
-
setCount
public void setCount(long countVal) -
increment
public void increment() -
increment
public void increment(long delta) -
decrement
public void decrement() -
reset
public void reset()- Overrides:
resetin classStatisticImpl
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-