Package org.apache.activemq.management
Class PollCountStatisticImpl
java.lang.Object
org.apache.activemq.management.StatisticImpl
org.apache.activemq.management.PollCountStatisticImpl
- All Implemented Interfaces:
CountStatistic,Resettable,Statistic
A count statistic implementation
-
Field Summary
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled -
Constructor Summary
ConstructorsConstructorDescriptionPollCountStatisticImpl(String name, String description) PollCountStatisticImpl(String name, String unit, String description) PollCountStatisticImpl(PollCountStatisticImpl parent, String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFieldDescription(StringBuffer buffer) longgetCount()doubledoublevoidsetParent(PollCountStatisticImpl parent) Methods inherited from class org.apache.activemq.management.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, reset, setDoReset, setEnabled, toString, updateSampleTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.management.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
Constructor Details
-
PollCountStatisticImpl
-
PollCountStatisticImpl
-
PollCountStatisticImpl
-
-
Method Details
-
getParent
-
setParent
-
getCount
public long getCount()- Specified by:
getCountin interfaceCountStatistic
-
appendFieldDescription
- Overrides:
appendFieldDescriptionin classStatisticImpl
-
getPeriod
public double getPeriod()- Returns:
- the average time period that elapses between counter increments since the last reset.
-
getFrequency
public double getFrequency()- Returns:
- the number of times per second that the counter is incrementing since the last reset.
-