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

All Known Implementing Classes:
ManagedThreadPool

public interface ManagedThreadPoolMBean


Method Summary
 int getActiveCount()
           
 long getCompletedTaskCount()
           
 int getCorePoolSize()
           
 String getId()
           
 long getKeepAliveTime()
           
 int getLargestPoolSize()
           
 int getMaximumPoolSize()
           
 int getPoolSize()
           
 String getRouteId()
           
 String getSourceId()
           
 long getTaskCount()
           
 int getTaskQueueRemainingCapacity()
           
 long getTaskQueueSize()
           
 String getThreadPoolProfileId()
           
 boolean isShutdown()
           
 boolean isTaskQueueEmpty()
           
 void purge()
           
 void setCorePoolSize(int corePoolSize)
           
 void setKeepAliveTime(long keepAliveTimeInSeconds)
           
 void setMaximumPoolSize(int maximumPoolSize)
           
 

Method Detail

getId

@ManagedAttribute(description="Thread Pool ID")
String getId()

getSourceId

@ManagedAttribute(description="ID of source for creating Thread Pool")
String getSourceId()

getRouteId

@ManagedAttribute(description="Route ID for the source, which created the Thread Pool")
String getRouteId()

getThreadPoolProfileId

@ManagedAttribute(description="ID of the thread pool profile which this pool is based upon")
String getThreadPoolProfileId()

getCorePoolSize

@ManagedAttribute(description="Core pool size")
int getCorePoolSize()

setCorePoolSize

@ManagedAttribute(description="Core pool size")
void setCorePoolSize(int corePoolSize)

getPoolSize

@ManagedAttribute(description="Pool size")
int getPoolSize()

getMaximumPoolSize

@ManagedAttribute(description="Maximum pool size")
int getMaximumPoolSize()

setMaximumPoolSize

@ManagedAttribute(description="Maximum pool size")
void setMaximumPoolSize(int maximumPoolSize)

getLargestPoolSize

@ManagedAttribute(description="Largest pool size")
int getLargestPoolSize()

getActiveCount

@ManagedAttribute(description="Active count")
int getActiveCount()

getTaskCount

@ManagedAttribute(description="Task count")
long getTaskCount()

getCompletedTaskCount

@ManagedAttribute(description="Completed task count")
long getCompletedTaskCount()

getTaskQueueSize

@ManagedAttribute(description="Task queue size")
long getTaskQueueSize()

isTaskQueueEmpty

@ManagedAttribute(description="Is task queue empty")
boolean isTaskQueueEmpty()

getKeepAliveTime

@ManagedAttribute(description="Keep alive time in seconds")
long getKeepAliveTime()

setKeepAliveTime

@ManagedAttribute(description="Keep alive time in seconds")
void setKeepAliveTime(long keepAliveTimeInSeconds)

isShutdown

@ManagedAttribute(description="Is shutdown")
boolean isShutdown()

purge

@ManagedOperation(description="Purges the pool")
void purge()

getTaskQueueRemainingCapacity

@ManagedOperation(description="Returns the number of additional elements that the Task queue can ideally (in the absence of memory or resource constraints) accept")
int getTaskQueueRemainingCapacity()


Apache CAMEL