Interface ManagedStreamCachingStrategyMBean
-
- All Superinterfaces:
ManagedServiceMBean
public interface ManagedStreamCachingStrategyMBean extends ManagedServiceMBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ManagedStreamCachingStrategyMBean.SpoolUsedHeapMemoryLimit
Used for selecting if the memory limit is committed or maximum heap memory setting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBufferSize()
long
getCacheMemoryAverageSize()
long
getCacheMemoryCounter()
long
getCacheMemorySize()
long
getCacheSpoolAverageSize()
long
getCacheSpoolCounter()
long
getCacheSpoolSize()
String
getSpoolCipher()
String
getSpoolDirectory()
long
getSpoolThreshold()
ManagedStreamCachingStrategyMBean.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(ManagedStreamCachingStrategyMBean.SpoolUsedHeapMemoryLimit limit)
void
setSpoolUsedHeapMemoryThreshold(int percentage)
void
setStatisticsEnabled(boolean enabled)
-
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedServiceMBean
getCamelId, getCamelManagementName, getRouteId, getServiceType, getState, isStaticService, isSupportSuspension, isSuspended, resume, start, stop, suspend
-
-
-
-
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()
-
getSpoolCipher
@ManagedAttribute(description="Cipher used if writing with encryption") String getSpoolCipher()
-
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(ManagedStreamCachingStrategyMBean.SpoolUsedHeapMemoryLimit limit)
-
getSpoolUsedHeapMemoryLimit
@ManagedAttribute(description="Whether used heap memory limit is committed or maximum") ManagedStreamCachingStrategyMBean.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()
-
-