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 CountStatisticImpl
protected CountStatisticImpl
protected TimeStatisticImpl
protected TimeStatisticImpl
protected CountStatisticImpl
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
-
Constructor Summary
ConstructorsConstructorDescriptionThis 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
Modifier and TypeMethodDescriptionvoid
dump
(IndentPrinter out) void
void
reset()
Reset the statisticvoid
setEnabled
(boolean enabled) protected void
setParent
(CountStatisticImpl child, CountStatisticImpl parent) protected void
setParent
(TimeStatisticImpl child, TimeStatisticImpl parent) 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 Details
-
messageCount
-
pendingMessageCount
-
expiredMessageCount
-
messageWaitTime
-
messageRateTime
-
-
Constructor Details
-
JMSEndpointStatsImpl
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 Details
-
reset
public void reset()Description copied from interface:Resettable
Reset the statistic- Specified by:
reset
in interfaceResettable
- Overrides:
reset
in classStatsImpl
-
getMessageCount
-
getPendingMessageCount
-
getExpiredMessageCount
-
getMessageRateTime
-
getMessageWaitTime
-
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
-
setParent
-
setParent
-