org.apache.activemq.management
Class JMSEndpointStatsImpl
java.lang.Object
org.apache.activemq.management.StatisticImpl
org.apache.activemq.management.StatsImpl
org.apache.activemq.management.JMSEndpointStatsImpl
- All Implemented Interfaces:
- javax.management.j2ee.statistics.Statistic, javax.management.j2ee.statistics.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.
- Version:
- $Revision: 1.3 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
messageCount
protected CountStatisticImpl messageCount
pendingMessageCount
protected CountStatisticImpl pendingMessageCount
expiredMessageCount
protected CountStatisticImpl expiredMessageCount
messageWaitTime
protected TimeStatisticImpl messageWaitTime
messageRateTime
protected TimeStatisticImpl messageRateTime
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)
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 java.lang.String toString()
- Overrides:
toString
in class StatisticImpl
onMessage
public void onMessage()
dump
public void dump(IndentPrinter out)
setParent
protected void setParent(CountStatisticImpl child,
CountStatisticImpl parent)
setParent
protected void setParent(TimeStatisticImpl child,
TimeStatisticImpl parent)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.