org.apache.camel.management.mbean
Class ManagedThreadPool
java.lang.Object
org.apache.camel.management.mbean.ManagedThreadPool
- All Implemented Interfaces:
- ManagedThreadPoolMBean
@ManagedResource(description="Managed ThreadPool")
public class ManagedThreadPool
- extends Object
- implements ManagedThreadPoolMBean
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedThreadPool
public ManagedThreadPool(CamelContext camelContext,
ThreadPoolExecutor threadPool,
String id,
String sourceId,
String routeId,
String threadPoolProfileId)
init
public void init(ManagementStrategy strategy)
getContext
public CamelContext getContext()
getThreadPool
public ThreadPoolExecutor getThreadPool()
getId
public String getId()
- Specified by:
getId
in interface ManagedThreadPoolMBean
getSourceId
public String getSourceId()
- Specified by:
getSourceId
in interface ManagedThreadPoolMBean
getRouteId
public String getRouteId()
- Specified by:
getRouteId
in interface ManagedThreadPoolMBean
getThreadPoolProfileId
public String getThreadPoolProfileId()
- Specified by:
getThreadPoolProfileId
in interface ManagedThreadPoolMBean
getCorePoolSize
public int getCorePoolSize()
- Specified by:
getCorePoolSize
in interface ManagedThreadPoolMBean
setCorePoolSize
public void setCorePoolSize(int corePoolSize)
- Specified by:
setCorePoolSize
in interface ManagedThreadPoolMBean
getPoolSize
public int getPoolSize()
- Specified by:
getPoolSize
in interface ManagedThreadPoolMBean
getMaximumPoolSize
public int getMaximumPoolSize()
- Specified by:
getMaximumPoolSize
in interface ManagedThreadPoolMBean
setMaximumPoolSize
public void setMaximumPoolSize(int maximumPoolSize)
- Specified by:
setMaximumPoolSize
in interface ManagedThreadPoolMBean
getLargestPoolSize
public int getLargestPoolSize()
- Specified by:
getLargestPoolSize
in interface ManagedThreadPoolMBean
getActiveCount
public int getActiveCount()
- Specified by:
getActiveCount
in interface ManagedThreadPoolMBean
getTaskCount
public long getTaskCount()
- Specified by:
getTaskCount
in interface ManagedThreadPoolMBean
getCompletedTaskCount
public long getCompletedTaskCount()
- Specified by:
getCompletedTaskCount
in interface ManagedThreadPoolMBean
getTaskQueueSize
public long getTaskQueueSize()
- Specified by:
getTaskQueueSize
in interface ManagedThreadPoolMBean
isTaskQueueEmpty
public boolean isTaskQueueEmpty()
- Specified by:
isTaskQueueEmpty
in interface ManagedThreadPoolMBean
getKeepAliveTime
public long getKeepAliveTime()
- Specified by:
getKeepAliveTime
in interface ManagedThreadPoolMBean
setKeepAliveTime
public void setKeepAliveTime(long keepAliveTimeInSeconds)
- Specified by:
setKeepAliveTime
in interface ManagedThreadPoolMBean
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interface ManagedThreadPoolMBean
purge
public void purge()
- Specified by:
purge
in interface ManagedThreadPoolMBean
getTaskQueueRemainingCapacity
public int getTaskQueueRemainingCapacity()
- Specified by:
getTaskQueueRemainingCapacity
in interface ManagedThreadPoolMBean
Apache Camel