Class CountStatisticImpl
- java.lang.Object
-
- org.glassfish.external.statistics.impl.StatisticImpl
-
- org.glassfish.external.statistics.impl.CountStatisticImpl
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
,CountStatistic
,Statistic
public final class CountStatisticImpl extends StatisticImpl implements CountStatistic, java.lang.reflect.InvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private long
count
private CountStatistic
cs
private long
initCount
-
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 CountStatisticImpl(long countVal, java.lang.String name, java.lang.String unit, java.lang.String desc, long sampleTime, long startTime)
CountStatisticImpl(java.lang.String name, java.lang.String unit, java.lang.String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decrement()
long
getCount()
The count since the last reset.java.util.Map
getStaticAsMap()
CountStatistic
getStatistic()
void
increment()
void
increment(long delta)
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
void
reset()
void
setCount(long countVal)
java.lang.String
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 Detail
-
count
private long count
-
initCount
private final long initCount
-
cs
private final CountStatistic cs
-
-
Method Detail
-
getStatistic
public CountStatistic getStatistic()
-
getStaticAsMap
public java.util.Map getStaticAsMap()
- Overrides:
getStaticAsMap
in classStatisticImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classStatisticImpl
-
getCount
public long getCount()
Description copied from interface:CountStatistic
The count since the last reset.- Specified by:
getCount
in 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:
reset
in classStatisticImpl
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-