@ManagedResource(description="Managed StreamCachingStrategy") public class ManagedStreamCachingStrategy extends ManagedService implements ManagedStreamCachingStrategyMBean
Constructor and Description |
---|
ManagedStreamCachingStrategy(CamelContext camelContext,
StreamCachingStrategy streamCachingStrategy) |
getCamelId, getCamelManagementName, getContext, getInstance, getRoute, getRouteId, getService, getServiceType, getState, init, isStaticService, isSupportSuspension, isSuspended, resume, setRoute, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCamelId, getCamelManagementName, getRouteId, getServiceType, getState, isStaticService, isSupportSuspension, isSuspended, resume, start, stop, suspend
public ManagedStreamCachingStrategy(CamelContext camelContext, StreamCachingStrategy streamCachingStrategy)
public CamelContext getCamelContext()
public StreamCachingStrategy getStreamCachingStrategy()
public boolean isEnabled()
isEnabled
in interface ManagedStreamCachingStrategyMBean
public String getSpoolDirectory()
getSpoolDirectory
in interface ManagedStreamCachingStrategyMBean
public String getSpoolChiper()
getSpoolChiper
in interface ManagedStreamCachingStrategyMBean
public void setSpoolThreshold(long threshold)
setSpoolThreshold
in interface ManagedStreamCachingStrategyMBean
public long getSpoolThreshold()
getSpoolThreshold
in interface ManagedStreamCachingStrategyMBean
public void setSpoolUsedHeapMemoryThreshold(int percentage)
setSpoolUsedHeapMemoryThreshold
in interface ManagedStreamCachingStrategyMBean
public int getSpoolUsedHeapMemoryThreshold()
getSpoolUsedHeapMemoryThreshold
in interface ManagedStreamCachingStrategyMBean
public void setSpoolUsedHeapMemoryLimit(StreamCachingStrategy.SpoolUsedHeapMemoryLimit limit)
setSpoolUsedHeapMemoryLimit
in interface ManagedStreamCachingStrategyMBean
public StreamCachingStrategy.SpoolUsedHeapMemoryLimit getSpoolUsedHeapMemoryLimit()
getSpoolUsedHeapMemoryLimit
in interface ManagedStreamCachingStrategyMBean
public void setBufferSize(int bufferSize)
setBufferSize
in interface ManagedStreamCachingStrategyMBean
public int getBufferSize()
getBufferSize
in interface ManagedStreamCachingStrategyMBean
public void setRemoveSpoolDirectoryWhenStopping(boolean remove)
setRemoveSpoolDirectoryWhenStopping
in interface ManagedStreamCachingStrategyMBean
public boolean isRemoveSpoolDirectoryWhenStopping()
isRemoveSpoolDirectoryWhenStopping
in interface ManagedStreamCachingStrategyMBean
public void setAnySpoolRules(boolean any)
setAnySpoolRules
in interface ManagedStreamCachingStrategyMBean
public boolean isAnySpoolRules()
isAnySpoolRules
in interface ManagedStreamCachingStrategyMBean
public long getCacheMemoryCounter()
getCacheMemoryCounter
in interface ManagedStreamCachingStrategyMBean
public long getCacheMemorySize()
getCacheMemorySize
in interface ManagedStreamCachingStrategyMBean
public long getCacheMemoryAverageSize()
getCacheMemoryAverageSize
in interface ManagedStreamCachingStrategyMBean
public long getCacheSpoolCounter()
getCacheSpoolCounter
in interface ManagedStreamCachingStrategyMBean
public long getCacheSpoolSize()
getCacheSpoolSize
in interface ManagedStreamCachingStrategyMBean
public long getCacheSpoolAverageSize()
getCacheSpoolAverageSize
in interface ManagedStreamCachingStrategyMBean
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface ManagedStreamCachingStrategyMBean
public void setStatisticsEnabled(boolean enabled)
setStatisticsEnabled
in interface ManagedStreamCachingStrategyMBean
public void resetStatistics()
resetStatistics
in interface ManagedStreamCachingStrategyMBean
Apache Camel