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:
Statistic
,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 aDestination
as well.
-
-
Field Summary
Fields Modifier and Type Field Description protected CountStatisticImpl
expiredMessageCount
protected CountStatisticImpl
messageCount
protected TimeStatisticImpl
messageRateTime
protected TimeStatisticImpl
messageWaitTime
protected CountStatisticImpl
pendingMessageCount
-
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
-
Constructor Summary
Constructors Constructor Description JMSEndpointStatsImpl()
This constructor is typically used to create a statistics object for aDestination
JMSEndpointStatsImpl(CountStatisticImpl messageCount, CountStatisticImpl pendingMessageCount, CountStatisticImpl expiredMessageCount, TimeStatisticImpl messageWaitTime, TimeStatisticImpl messageRateTime)
JMSEndpointStatsImpl(JMSSessionStatsImpl sessionStats)
This constructor is used to create statistics for aMessageProducer
orMessageConsumer
as it passes in aSession
parent statistic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(IndentPrinter out)
CountStatisticImpl
getExpiredMessageCount()
CountStatisticImpl
getMessageCount()
TimeStatisticImpl
getMessageRateTime()
TimeStatisticImpl
getMessageWaitTime()
CountStatisticImpl
getPendingMessageCount()
void
onMessage()
void
reset()
Reset the statisticvoid
setEnabled(boolean enabled)
protected void
setParent(CountStatisticImpl child, CountStatisticImpl parent)
protected void
setParent(TimeStatisticImpl child, TimeStatisticImpl parent)
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
-
-
-
-
Field Detail
-
messageCount
protected CountStatisticImpl messageCount
-
pendingMessageCount
protected CountStatisticImpl pendingMessageCount
-
expiredMessageCount
protected CountStatisticImpl expiredMessageCount
-
messageWaitTime
protected TimeStatisticImpl messageWaitTime
-
messageRateTime
protected TimeStatisticImpl messageRateTime
-
-
Constructor Detail
-
JMSEndpointStatsImpl
public JMSEndpointStatsImpl(JMSSessionStatsImpl sessionStats)
This constructor is used to create statistics for aMessageProducer
orMessageConsumer
as it passes in aSession
parent 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 Detail
-
reset
public void reset()
Description copied from interface:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classStatsImpl
-
getMessageCount
public CountStatisticImpl getMessageCount()
-
getPendingMessageCount
public CountStatisticImpl getPendingMessageCount()
-
getExpiredMessageCount
public CountStatisticImpl getExpiredMessageCount()
-
getMessageRateTime
public TimeStatisticImpl getMessageRateTime()
-
getMessageWaitTime
public TimeStatisticImpl getMessageWaitTime()
-
toString
public String toString()
- Overrides:
toString
in classStatisticImpl
-
onMessage
public void onMessage()
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabled
in classStatisticImpl
- Parameters:
enabled
- the enabled to set
-
dump
public void dump(IndentPrinter out)
-
setParent
protected void setParent(CountStatisticImpl child, CountStatisticImpl parent)
-
setParent
protected void setParent(TimeStatisticImpl child, TimeStatisticImpl parent)
-
-