Package 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:
Resettable,Statistic,Stats
- Direct Known Subclasses:
JMSConsumerStatsImpl,JMSProducerStatsImpl
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
FieldsModifier and TypeFieldDescriptionprotected CountStatisticImplprotected CountStatisticImplprotected TimeStatisticImplprotected TimeStatisticImplprotected CountStatisticImplFields inherited from class org.apache.activemq.management.StatisticImpl
enabled -
Constructor Summary
ConstructorsConstructorDescriptionThis constructor is typically used to create a statistics object for aDestinationJMSEndpointStatsImpl(CountStatisticImpl messageCount, CountStatisticImpl pendingMessageCount, CountStatisticImpl expiredMessageCount, TimeStatisticImpl messageWaitTime, TimeStatisticImpl messageRateTime) JMSEndpointStatsImpl(JMSSessionStatsImpl sessionStats) This constructor is used to create statistics for aMessageProducerorMessageConsumeras it passes in aSessionparent statistic. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(IndentPrinter out) voidvoidreset()Reset the statisticvoidsetEnabled(boolean enabled) protected voidsetParent(CountStatisticImpl child, CountStatisticImpl parent) protected voidsetParent(TimeStatisticImpl child, TimeStatisticImpl parent) toString()Methods inherited from class org.apache.activemq.management.StatsImpl
addStatistic, getStatistic, getStatisticNames, getStatisticsMethods inherited from class org.apache.activemq.management.StatisticImpl
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, updateSampleTime
-
Field Details
-
messageCount
-
pendingMessageCount
-
expiredMessageCount
-
messageWaitTime
-
messageRateTime
-
-
Constructor Details
-
JMSEndpointStatsImpl
This constructor is used to create statistics for aMessageProducerorMessageConsumeras it passes in aSessionparent statistic.- Parameters:
sessionStats-
-
JMSEndpointStatsImpl
public JMSEndpointStatsImpl()This constructor is typically used to create a statistics object for aDestination -
JMSEndpointStatsImpl
public JMSEndpointStatsImpl(CountStatisticImpl messageCount, CountStatisticImpl pendingMessageCount, CountStatisticImpl expiredMessageCount, TimeStatisticImpl messageWaitTime, TimeStatisticImpl messageRateTime)
-
-
Method Details
-
reset
public void reset()Description copied from interface:ResettableReset the statistic- Specified by:
resetin interfaceResettable- Overrides:
resetin classStatsImpl
-
getMessageCount
-
getPendingMessageCount
-
getExpiredMessageCount
-
getMessageRateTime
-
getMessageWaitTime
-
toString
- Overrides:
toStringin classStatisticImpl
-
onMessage
public void onMessage() -
setEnabled
public void setEnabled(boolean enabled) - Overrides:
setEnabledin classStatisticImpl- Parameters:
enabled- the enabled to set
-
dump
-
setParent
-
setParent
-