org.apache.camel.management.mbean
Class ManagedCounter

java.lang.Object
  extended by org.apache.camel.management.mbean.ManagedCounter
Direct Known Subclasses:
ManagedPerformanceCounter

@ManagedResource(description="Managed Counter")
public abstract class ManagedCounter
extends Object


Field Summary
protected  org.fusesource.commons.management.Statistic exchangesTotal
           
 
Constructor Summary
ManagedCounter()
           
 
Method Summary
 long getExchangesTotal()
           
 void increment()
           
 void init(ManagementStrategy strategy)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exchangesTotal

protected org.fusesource.commons.management.Statistic exchangesTotal
Constructor Detail

ManagedCounter

public ManagedCounter()
Method Detail

init

public void init(ManagementStrategy strategy)

reset

@ManagedOperation(description="Reset counters")
public void reset()

getExchangesTotal

@ManagedAttribute(description="Total number of exchanges")
public long getExchangesTotal()
                       throws Exception
Throws:
Exception

increment

public void increment()


Apache CAMEL