@ManagedResource(description="Managed PerformanceCounter") public abstract class ManagedPerformanceCounter extends ManagedCounter implements PerformanceCounter, org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Modifier and Type | Field and Description |
---|---|
static String |
TIMESTAMP_FORMAT |
exchangesTotal, resetTimestamp, startTimestamp
Constructor and Description |
---|
ManagedPerformanceCounter() |
getExchangesTotal, getResetTimestamp, getStartTimestamp, increment
public static final String TIMESTAMP_FORMAT
public ManagedPerformanceCounter()
public void init(org.apache.camel.spi.ManagementStrategy strategy)
init
in class ManagedCounter
public void reset()
reset
in interface org.apache.camel.api.management.mbean.ManagedCounterMBean
reset
in class ManagedCounter
public long getExchangesCompleted() throws Exception
getExchangesCompleted
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getExchangesFailed() throws Exception
getExchangesFailed
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getExchangesInflight()
getExchangesInflight
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public long getFailuresHandled() throws Exception
getFailuresHandled
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getRedeliveries() throws Exception
getRedeliveries
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getExternalRedeliveries() throws Exception
getExternalRedeliveries
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getMinProcessingTime() throws Exception
getMinProcessingTime
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getMeanProcessingTime() throws Exception
getMeanProcessingTime
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getMaxProcessingTime() throws Exception
getMaxProcessingTime
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getTotalProcessingTime() throws Exception
getTotalProcessingTime
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getLastProcessingTime() throws Exception
getLastProcessingTime
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public long getDeltaProcessingTime() throws Exception
getDeltaProcessingTime
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Exception
public Date getLastExchangeCompletedTimestamp()
getLastExchangeCompletedTimestamp
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public String getLastExchangeCompletedExchangeId()
getLastExchangeCompletedExchangeId
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public Date getFirstExchangeCompletedTimestamp()
getFirstExchangeCompletedTimestamp
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public String getFirstExchangeCompletedExchangeId()
getFirstExchangeCompletedExchangeId
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public Date getLastExchangeFailureTimestamp()
getLastExchangeFailureTimestamp
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public String getLastExchangeFailureExchangeId()
getLastExchangeFailureExchangeId
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public Date getFirstExchangeFailureTimestamp()
getFirstExchangeFailureTimestamp
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public String getFirstExchangeFailureExchangeId()
getFirstExchangeFailureExchangeId
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
public boolean isStatisticsEnabled()
PerformanceCounter
isStatisticsEnabled
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
isStatisticsEnabled
in interface PerformanceCounter
public void setStatisticsEnabled(boolean statisticsEnabled)
PerformanceCounter
setStatisticsEnabled
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
setStatisticsEnabled
in interface PerformanceCounter
statisticsEnabled
- whether statistics are enabled or notpublic void processExchange(org.apache.camel.Exchange exchange)
PerformanceCounter
Exchange
is about to be processed.processExchange
in interface PerformanceCounter
exchange
- the exchangepublic void completedExchange(org.apache.camel.Exchange exchange, long time)
PerformanceCounter
Exchange
is complete.completedExchange
in interface PerformanceCounter
exchange
- the exchangetime
- the time it took in millis to completepublic void failedExchange(org.apache.camel.Exchange exchange)
PerformanceCounter
Exchange
failed.failedExchange
in interface PerformanceCounter
exchange
- the exchangepublic String dumpStatsAsXml(boolean fullStats)
dumpStatsAsXml
in interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
Apache Camel