org.apache.activemq.management
Class PollCountStatisticImpl

java.lang.Object
  extended by org.apache.activemq.management.StatisticImpl
      extended by org.apache.activemq.management.PollCountStatisticImpl
All Implemented Interfaces:
CountStatistic, Statistic, Resettable

public class PollCountStatisticImpl
extends StatisticImpl
implements CountStatistic

A count statistic implementation


Field Summary
 
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
 
Constructor Summary
PollCountStatisticImpl(PollCountStatisticImpl parent, String name, String description)
           
PollCountStatisticImpl(String name, String description)
           
PollCountStatisticImpl(String name, String unit, String description)
           
 
Method Summary
protected  void appendFieldDescription(StringBuffer buffer)
           
 long getCount()
           
 double getFrequency()
           
 PollCountStatisticImpl getParent()
           
 double getPeriod()
           
 void setParent(PollCountStatisticImpl parent)
           
 
Methods inherited from class org.apache.activemq.management.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, reset, setDoReset, setEnabled, toString, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Constructor Detail

PollCountStatisticImpl

public PollCountStatisticImpl(PollCountStatisticImpl parent,
                              String name,
                              String description)

PollCountStatisticImpl

public PollCountStatisticImpl(String name,
                              String description)

PollCountStatisticImpl

public PollCountStatisticImpl(String name,
                              String unit,
                              String description)
Method Detail

getParent

public PollCountStatisticImpl getParent()

setParent

public void setParent(PollCountStatisticImpl parent)

getCount

public long getCount()
Specified by:
getCount in interface CountStatistic

appendFieldDescription

protected void appendFieldDescription(StringBuffer buffer)
Overrides:
appendFieldDescription in class StatisticImpl

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.


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.