Class ManagedThreadPool
- java.lang.Object
-
- org.apache.camel.management.mbean.ManagedThreadPool
-
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
@ManagedResource(description="Managed ThreadPool") public class ManagedThreadPool extends Object implements org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
-
Constructor Summary
Constructors Constructor Description ManagedThreadPool(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActiveCount()
String
getCamelId()
String
getCamelManagementName()
long
getCompletedTaskCount()
org.apache.camel.CamelContext
getContext()
int
getCorePoolSize()
String
getId()
long
getKeepAliveTime()
int
getLargestPoolSize()
int
getMaximumPoolSize()
int
getPoolSize()
String
getRouteId()
String
getSourceId()
long
getTaskCount()
int
getTaskQueueRemainingCapacity()
long
getTaskQueueSize()
ThreadPoolExecutor
getThreadPool()
String
getThreadPoolProfileId()
void
init(org.apache.camel.spi.ManagementStrategy strategy)
boolean
isAllowCoreThreadTimeout()
boolean
isShutdown()
boolean
isTaskQueueEmpty()
void
purge()
void
setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)
void
setCorePoolSize(int corePoolSize)
void
setKeepAliveTime(long keepAliveTimeInSeconds)
void
setMaximumPoolSize(int maximumPoolSize)
-
-
-
Constructor Detail
-
ManagedThreadPool
public ManagedThreadPool(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
-
-
Method Detail
-
init
public void init(org.apache.camel.spi.ManagementStrategy strategy)
-
getContext
public org.apache.camel.CamelContext getContext()
-
getThreadPool
public ThreadPoolExecutor getThreadPool()
-
getCamelId
public String getCamelId()
- Specified by:
getCamelId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getCamelManagementName
public String getCamelManagementName()
- Specified by:
getCamelManagementName
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getSourceId
public String getSourceId()
- Specified by:
getSourceId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getRouteId
public String getRouteId()
- Specified by:
getRouteId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getThreadPoolProfileId
public String getThreadPoolProfileId()
- Specified by:
getThreadPoolProfileId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getCorePoolSize
public int getCorePoolSize()
- Specified by:
getCorePoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setCorePoolSize
public void setCorePoolSize(int corePoolSize)
- Specified by:
setCorePoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getPoolSize
public int getPoolSize()
- Specified by:
getPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getMaximumPoolSize
public int getMaximumPoolSize()
- Specified by:
getMaximumPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setMaximumPoolSize
public void setMaximumPoolSize(int maximumPoolSize)
- Specified by:
setMaximumPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getLargestPoolSize
public int getLargestPoolSize()
- Specified by:
getLargestPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getActiveCount
public int getActiveCount()
- Specified by:
getActiveCount
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getTaskCount
public long getTaskCount()
- Specified by:
getTaskCount
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getCompletedTaskCount
public long getCompletedTaskCount()
- Specified by:
getCompletedTaskCount
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getTaskQueueSize
public long getTaskQueueSize()
- Specified by:
getTaskQueueSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
isTaskQueueEmpty
public boolean isTaskQueueEmpty()
- Specified by:
isTaskQueueEmpty
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getKeepAliveTime
public long getKeepAliveTime()
- Specified by:
getKeepAliveTime
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setKeepAliveTime
public void setKeepAliveTime(long keepAliveTimeInSeconds)
- Specified by:
setKeepAliveTime
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
isAllowCoreThreadTimeout
public boolean isAllowCoreThreadTimeout()
- Specified by:
isAllowCoreThreadTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setAllowCoreThreadTimeout
public void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)
- Specified by:
setAllowCoreThreadTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
purge
public void purge()
- Specified by:
purge
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getTaskQueueRemainingCapacity
public int getTaskQueueRemainingCapacity()
- Specified by:
getTaskQueueRemainingCapacity
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
-