org.apache.activemq.management
Class JMSEndpointStatsImpl

java.lang.Object
  extended by org.apache.activemq.management.StatisticImpl
      extended by org.apache.activemq.management.StatsImpl
          extended by org.apache.activemq.management.JMSEndpointStatsImpl
All Implemented Interfaces:
Statistic, Stats, Resettable
Direct Known Subclasses:
JMSConsumerStatsImpl, JMSProducerStatsImpl

public class JMSEndpointStatsImpl
extends StatsImpl

Statistics for a JMS endpoint, typically a MessageProducer or MessageConsumer but this class can also be used to represent statistics on a Destination as well.


Field Summary
protected  CountStatisticImpl expiredMessageCount
           
protected  CountStatisticImpl messageCount
           
protected  TimeStatisticImpl messageRateTime
           
protected  TimeStatisticImpl messageWaitTime
           
protected  CountStatisticImpl pendingMessageCount
           
 
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
 
Constructor Summary
JMSEndpointStatsImpl()
          This constructor is typically used to create a statistics object for a Destination
JMSEndpointStatsImpl(CountStatisticImpl messageCount, CountStatisticImpl pendingMessageCount, CountStatisticImpl expiredMessageCount, TimeStatisticImpl messageWaitTime, TimeStatisticImpl messageRateTime)
           
JMSEndpointStatsImpl(JMSSessionStatsImpl sessionStats)
          This constructor is used to create statistics for a MessageProducer or MessageConsumer as it passes in a Session parent statistic.
 
Method Summary
 void dump(IndentPrinter out)
           
 CountStatisticImpl getExpiredMessageCount()
           
 CountStatisticImpl getMessageCount()
           
 TimeStatisticImpl getMessageRateTime()
           
 TimeStatisticImpl getMessageWaitTime()
           
 CountStatisticImpl getPendingMessageCount()
           
 void onMessage()
           
 void reset()
          Reset the statistic
 void setEnabled(boolean enabled)
           
protected  void setParent(CountStatisticImpl child, CountStatisticImpl parent)
           
protected  void setParent(TimeStatisticImpl child, TimeStatisticImpl parent)
           
 String toString()
           
 
Methods inherited from class org.apache.activemq.management.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatistics
 
Methods inherited from class org.apache.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageCount

protected CountStatisticImpl messageCount

pendingMessageCount

protected CountStatisticImpl pendingMessageCount

expiredMessageCount

protected CountStatisticImpl expiredMessageCount

messageWaitTime

protected TimeStatisticImpl messageWaitTime

messageRateTime

protected TimeStatisticImpl messageRateTime
Constructor Detail

JMSEndpointStatsImpl

public JMSEndpointStatsImpl(JMSSessionStatsImpl sessionStats)
This constructor is used to create statistics for a MessageProducer or MessageConsumer as it passes in a Session parent statistic.

Parameters:
sessionStats -

JMSEndpointStatsImpl

public JMSEndpointStatsImpl()
This constructor is typically used to create a statistics object for a Destination


JMSEndpointStatsImpl

public JMSEndpointStatsImpl(CountStatisticImpl messageCount,
                            CountStatisticImpl pendingMessageCount,
                            CountStatisticImpl expiredMessageCount,
                            TimeStatisticImpl messageWaitTime,
                            TimeStatisticImpl messageRateTime)
Method Detail

reset

public void reset()
Description copied from interface: Resettable
Reset the statistic

Specified by:
reset in interface Resettable
Overrides:
reset in class StatsImpl

getMessageCount

public CountStatisticImpl getMessageCount()

getPendingMessageCount

public CountStatisticImpl getPendingMessageCount()

getExpiredMessageCount

public CountStatisticImpl getExpiredMessageCount()

getMessageRateTime

public TimeStatisticImpl getMessageRateTime()

getMessageWaitTime

public TimeStatisticImpl getMessageWaitTime()

toString

public String toString()
Overrides:
toString in class StatisticImpl

onMessage

public void onMessage()

setEnabled

public void setEnabled(boolean enabled)
Overrides:
setEnabled in class StatisticImpl
Parameters:
enabled - the enabled to set

dump

public void dump(IndentPrinter out)

setParent

protected void setParent(CountStatisticImpl child,
                         CountStatisticImpl parent)

setParent

protected void setParent(TimeStatisticImpl child,
                         TimeStatisticImpl parent)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.