org.apache.activemq.management
Class JMSSessionStatsImpl

java.lang.Object
  extended by org.apache.activemq.management.StatisticImpl
      extended by org.apache.activemq.management.StatsImpl
          extended by org.apache.activemq.management.JMSSessionStatsImpl
All Implemented Interfaces:
Statistic, Stats, Resettable

public class JMSSessionStatsImpl
extends StatsImpl

Statistics for a JMS session


Field Summary
 
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
 
Constructor Summary
JMSSessionStatsImpl(List producers, List consumers)
           
 
Method Summary
 void dump(IndentPrinter out)
           
 JMSConsumerStatsImpl[] getConsumers()
           
 CountStatisticImpl getDurableSubscriptionCount()
           
 CountStatisticImpl getExpiredMessageCount()
           
 CountStatisticImpl getMessageCount()
           
 TimeStatisticImpl getMessageRateTime()
           
 TimeStatisticImpl getMessageWaitTime()
           
 CountStatisticImpl getPendingMessageCount()
           
 JMSProducerStatsImpl[] getProducers()
           
 void onCreateDurableSubscriber()
           
 void onRemoveDurableSubscriber()
           
 void reset()
          Reset the statistic
 void setEnabled(boolean enabled)
           
 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
 

Constructor Detail

JMSSessionStatsImpl

public JMSSessionStatsImpl(List producers,
                           List consumers)
Method Detail

getProducers

public JMSProducerStatsImpl[] getProducers()

getConsumers

public JMSConsumerStatsImpl[] getConsumers()

reset

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

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

setEnabled

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

getMessageCount

public CountStatisticImpl getMessageCount()

getPendingMessageCount

public CountStatisticImpl getPendingMessageCount()

getExpiredMessageCount

public CountStatisticImpl getExpiredMessageCount()

getMessageWaitTime

public TimeStatisticImpl getMessageWaitTime()

getDurableSubscriptionCount

public CountStatisticImpl getDurableSubscriptionCount()

getMessageRateTime

public TimeStatisticImpl getMessageRateTime()

toString

public String toString()
Overrides:
toString in class StatisticImpl

dump

public void dump(IndentPrinter out)

onCreateDurableSubscriber

public void onCreateDurableSubscriber()

onRemoveDurableSubscriber

public void onRemoveDurableSubscriber()


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