org.codehaus.activemq.management
Class JMSEndpointStatsImpl
java.lang.Object
org.codehaus.activemq.management.StatsImpl
org.codehaus.activemq.management.JMSEndpointStatsImpl
- All Implemented Interfaces:
- JMSEndpointStats, Resettable, Stats
- Direct Known Subclasses:
- JMSConsumerStatsImpl, JMSProducerStatsImpl, JMSQueueStatsImpl, JMSTopicStatsImpl
- public class JMSEndpointStatsImpl
- extends StatsImpl
- implements JMSEndpointStats
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.1 $
messageCount
protected CountStatisticImpl messageCount
pendingMessageCount
protected CountStatisticImpl pendingMessageCount
expiredMessageCount
protected CountStatisticImpl expiredMessageCount
messageWaitTime
protected TimeStatistic 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)
getMessageCount
public CountStatistic getMessageCount()
- Specified by:
getMessageCount
in interface JMSEndpointStats
getPendingMessageCount
public CountStatistic getPendingMessageCount()
- Specified by:
getPendingMessageCount
in interface JMSEndpointStats
getExpiredMessageCount
public CountStatistic getExpiredMessageCount()
- Specified by:
getExpiredMessageCount
in interface JMSEndpointStats
getMessageWaitTime
public TimeStatistic getMessageWaitTime()
- Specified by:
getMessageWaitTime
in interface JMSEndpointStats
toString
public String toString()
onMessage
public void onMessage(Message message)
dump
public void dump(IndentPrinter out)
setParent
protected void setParent(CountStatistic child,
CountStatistic parent)
setParent
protected void setParent(TimeStatistic child,
TimeStatistic parent)
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.