Class ManagedCounter
- java.lang.Object
-
- org.apache.camel.management.mbean.ManagedCounter
-
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedCounterMBean
- Direct Known Subclasses:
ManagedPerformanceCounter
@ManagedResource(description="Managed Counter") public abstract class ManagedCounter extends Object implements org.apache.camel.api.management.mbean.ManagedCounterMBean
-
-
Field Summary
Fields Modifier and Type Field Description protected Statistic
exchangesTotal
protected Date
resetTimestamp
protected Date
startTimestamp
-
Constructor Summary
Constructors Constructor Description ManagedCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getExchangesTotal()
Date
getResetTimestamp()
Date
getStartTimestamp()
void
increment()
void
init(org.apache.camel.spi.ManagementStrategy strategy)
void
reset()
-
-
-
Field Detail
-
exchangesTotal
protected Statistic exchangesTotal
-
startTimestamp
protected Date startTimestamp
-
resetTimestamp
protected Date resetTimestamp
-
-
Constructor Detail
-
ManagedCounter
public ManagedCounter()
-
-
Method Detail
-
init
public void init(org.apache.camel.spi.ManagementStrategy strategy)
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.apache.camel.api.management.mbean.ManagedCounterMBean
-
getStartTimestamp
public Date getStartTimestamp()
- Specified by:
getStartTimestamp
in interfaceorg.apache.camel.api.management.mbean.ManagedCounterMBean
-
getResetTimestamp
public Date getResetTimestamp()
- Specified by:
getResetTimestamp
in interfaceorg.apache.camel.api.management.mbean.ManagedCounterMBean
-
getExchangesTotal
public long getExchangesTotal() throws Exception
- Specified by:
getExchangesTotal
in interfaceorg.apache.camel.api.management.mbean.ManagedCounterMBean
- Throws:
Exception
-
increment
public void increment()
-
-