org.activemq.management
Class JMSQueueStatsImpl

java.lang.Object
  extended by org.activemq.management.StatisticImpl
      extended by org.activemq.management.StatsImpl
          extended by org.activemq.management.JMSEndpointStatsImpl
              extended by org.activemq.management.JMSQueueStatsImpl
All Implemented Interfaces:
Statistic, Stats, JMSDestinationStats, Resettable

public class JMSQueueStatsImpl
extends JMSEndpointStatsImpl
implements JMSDestinationStats

Statistics for a Queue

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  TimeStatisticImpl sendMessageRateTime
           
 
Fields inherited from class org.activemq.management.JMSEndpointStatsImpl
expiredMessageCount, messageCount, messageRateTime, messageWaitTime, pendingMessageCount
 
Constructor Summary
JMSQueueStatsImpl()
           
JMSQueueStatsImpl(CountStatisticImpl messageCount, CountStatisticImpl pendingMessageCount, CountStatisticImpl expiredMessageCount, TimeStatisticImpl messageWaitTime, TimeStatisticImpl messageRateTime, TimeStatisticImpl sendMessageRateTime)
           
 
Method Summary
 void onMessageAck()
          On a consume from this destination, updates the consumed states
 void onMessageSend(Message message)
          On a message send to this destination, update the producing stats
 void setPendingMessageCountOnStartup(long count)
          On startup sets the pending message count
 
Methods inherited from class org.activemq.management.JMSEndpointStatsImpl
dump, getExpiredMessageCount, getMessageCount, getMessageRateTime, getMessageWaitTime, getPendingMessageCount, onMessage, reset, setParent, setParent, toString
 
Methods inherited from class org.activemq.management.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatistics
 
Methods inherited from class org.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sendMessageRateTime

protected TimeStatisticImpl sendMessageRateTime
Constructor Detail

JMSQueueStatsImpl

public JMSQueueStatsImpl()

JMSQueueStatsImpl

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

setPendingMessageCountOnStartup

public void setPendingMessageCountOnStartup(long count)
Description copied from interface: JMSDestinationStats
On startup sets the pending message count

Specified by:
setPendingMessageCountOnStartup in interface JMSDestinationStats

onMessageSend

public void onMessageSend(Message message)
Description copied from interface: JMSDestinationStats
On a message send to this destination, update the producing stats

Specified by:
onMessageSend in interface JMSDestinationStats

onMessageAck

public void onMessageAck()
Description copied from interface: JMSDestinationStats
On a consume from this destination, updates the consumed states

Specified by:
onMessageAck in interface JMSDestinationStats


Copyright © 2004-2008 Protique, Ltd.. All Rights Reserved.