org.apache.camel.api.management.mbean
Interface ManagedStreamCachingStrategyMBean

All Known Implementing Classes:
ManagedStreamCachingStrategy

public interface ManagedStreamCachingStrategyMBean


Method Summary
 int getBufferSize()
           
 long getCacheMemoryAverageSize()
           
 long getCacheMemoryCounter()
           
 long getCacheMemorySize()
           
 long getCacheSpoolAverageSize()
           
 long getCacheSpoolCounter()
           
 long getCacheSpoolSize()
           
 String getSpoolChiper()
           
 String getSpoolDirectory()
           
 long getSpoolThreshold()
           
 StreamCachingStrategy.SpoolUsedHeapMemoryLimit getSpoolUsedHeapMemoryLimit()
           
 int getSpoolUsedHeapMemoryThreshold()
           
 boolean isAnySpoolRules()
           
 boolean isEnabled()
           
 boolean isRemoveSpoolDirectoryWhenStopping()
           
 boolean isStatisticsEnabled()
           
 void resetStatistics()
           
 void setAnySpoolRules(boolean any)
           
 void setBufferSize(int bufferSize)
           
 void setRemoveSpoolDirectoryWhenStopping(boolean remove)
           
 void setSpoolThreshold(long threshold)
           
 void setSpoolUsedHeapMemoryLimit(StreamCachingStrategy.SpoolUsedHeapMemoryLimit limit)
           
 void setSpoolUsedHeapMemoryThreshold(int percentage)
           
 void setStatisticsEnabled(boolean enabled)
           
 

Method Detail

isEnabled

@ManagedAttribute(description="Whether stream caching is enabled")
boolean isEnabled()

getSpoolDirectory

@ManagedAttribute(description="Directory used when overflow and spooling to disk")
String getSpoolDirectory()

getSpoolChiper

@ManagedAttribute(description="Chiper used if writing with encryption")
String getSpoolChiper()

setSpoolThreshold

@ManagedAttribute(description="Threshold in bytes when overflow and spooling to disk instead of keeping in memory")
void setSpoolThreshold(long threshold)

getSpoolThreshold

@ManagedAttribute(description="Threshold in bytes when overflow and spooling to disk instead of keeping in memory")
long getSpoolThreshold()

setSpoolUsedHeapMemoryThreshold

@ManagedAttribute(description="Percentage (1-99) of used heap memory threshold to activate spooling to disk")
void setSpoolUsedHeapMemoryThreshold(int percentage)

getSpoolUsedHeapMemoryThreshold

@ManagedAttribute(description="Percentage (1-99) of used heap memory threshold to activate spooling to disk")
int getSpoolUsedHeapMemoryThreshold()

setSpoolUsedHeapMemoryLimit

@ManagedAttribute(description="Whether used heap memory limit is committed or maximum")
void setSpoolUsedHeapMemoryLimit(StreamCachingStrategy.SpoolUsedHeapMemoryLimit limit)

getSpoolUsedHeapMemoryLimit

@ManagedAttribute(description="Whether used heap memory limit is committed or maximum")
StreamCachingStrategy.SpoolUsedHeapMemoryLimit getSpoolUsedHeapMemoryLimit()

setBufferSize

@ManagedAttribute(description="Buffer size in bytes to use when coping between buffers")
void setBufferSize(int bufferSize)

getBufferSize

@ManagedAttribute(description="Buffer size in bytes to use when coping between buffers")
int getBufferSize()

setRemoveSpoolDirectoryWhenStopping

@ManagedAttribute(description="Whether to remove spool directory when stopping")
void setRemoveSpoolDirectoryWhenStopping(boolean remove)

isRemoveSpoolDirectoryWhenStopping

@ManagedAttribute(description="Whether to remove spool directory when stopping")
boolean isRemoveSpoolDirectoryWhenStopping()

setAnySpoolRules

@ManagedAttribute(description="Whether any or all spool rules determines whether to spool")
void setAnySpoolRules(boolean any)

isAnySpoolRules

@ManagedAttribute(description="Whether any or all spool rules determines whether to spool")
boolean isAnySpoolRules()

getCacheMemoryCounter

@ManagedAttribute(description="Number of in-memory StreamCache created")
long getCacheMemoryCounter()

getCacheMemorySize

@ManagedAttribute(description="Total accumulated number of bytes which has been stream cached for in-memory StreamCache")
long getCacheMemorySize()

getCacheMemoryAverageSize

@ManagedAttribute(description="Average number of bytes per cached stream for in-memory stream caches.")
long getCacheMemoryAverageSize()

getCacheSpoolCounter

@ManagedAttribute(description="Number of spooled (not in-memory) StreamCache created")
long getCacheSpoolCounter()

getCacheSpoolSize

@ManagedAttribute(description="Total accumulated number of bytes which has been stream cached for spooled StreamCache")
long getCacheSpoolSize()

getCacheSpoolAverageSize

@ManagedAttribute(description="Average number of bytes per cached stream for spooled (not in-memory) stream caches.")
long getCacheSpoolAverageSize()

isStatisticsEnabled

@ManagedAttribute(description="Whether utilization statistics is enabled")
boolean isStatisticsEnabled()

setStatisticsEnabled

@ManagedAttribute(description="Whether utilization statistics is enabled")
void setStatisticsEnabled(boolean enabled)

resetStatistics

@ManagedOperation(description="Reset the utilization statistics")
void resetStatistics()


Apache Camel