org.apache.camel.management.mbean
Class ManagedProducerCache

java.lang.Object
  extended by org.apache.camel.management.mbean.ManagedService
      extended by org.apache.camel.management.mbean.ManagedProducerCache
All Implemented Interfaces:
ManagedInstance

@ManagedResource(description="Managed ProducerCache")
public class ManagedProducerCache
extends ManagedService

Version:

Constructor Summary
ManagedProducerCache(CamelContext context, ProducerCache producerCache)
           
 
Method Summary
 Long getHits()
           
 Integer getMaximumCacheSize()
           
 Long getMisses()
           
 ProducerCache getProducerCache()
           
 Integer getSize()
           
 String getSource()
           
 void purge()
           
 void resetStatistics()
           
 
Methods inherited from class org.apache.camel.management.mbean.ManagedService
getCamelId, getContext, getInstance, getRoute, getRouteId, getService, getState, init, isSupportSuspension, isSuspended, resume, setRoute, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedProducerCache

public ManagedProducerCache(CamelContext context,
                            ProducerCache producerCache)
Method Detail

getProducerCache

public ProducerCache getProducerCache()

getSource

@ManagedAttribute(description="Source")
public String getSource()

getSize

@ManagedAttribute(description="Number of elements cached")
public Integer getSize()

getMaximumCacheSize

@ManagedAttribute(description="Maximum cache size (capacity)")
public Integer getMaximumCacheSize()

getHits

@ManagedAttribute(description="Cache hits")
public Long getHits()

getMisses

@ManagedAttribute(description="Cache misses")
public Long getMisses()

resetStatistics

@ManagedOperation(description="Reset cache statistics")
public void resetStatistics()

purge

@ManagedOperation(description="Purges the cache")
public void purge()


Apache CAMEL