Class JmxManagedThreadPool
java.lang.Object
org.camunda.bpm.container.impl.threading.se.SeExecutorService
org.camunda.bpm.container.impl.jmx.services.JmxManagedThreadPool
- All Implemented Interfaces:
ExecutorService
,JmxManagedThreadPoolMBean
,PlatformService<JmxManagedThreadPool>
public class JmxManagedThreadPool
extends SeExecutorService
implements JmxManagedThreadPoolMBean, PlatformService<JmxManagedThreadPool>
- Author:
- Daniel Meyer
-
Field Summary
Fields inherited from class org.camunda.bpm.container.impl.threading.se.SeExecutorService
threadPoolExecutor
-
Constructor Summary
ConstructorDescriptionJmxManagedThreadPool
(BlockingQueue<Runnable> queue, ThreadPoolExecutor executor) -
Method Summary
Modifier and TypeMethodDescriptionint
long
int
int
int
int
int
long
getValue()
void
void
setCorePoolSize
(int corePoolSize) void
setKeepAliveTime
(long time, TimeUnit unit) void
setMaximumPoolSize
(int maximumPoolSize) void
start
(PlatformServiceContainer mBeanServiceContainer) void
stop
(PlatformServiceContainer mBeanServiceContainer) Methods inherited from class org.camunda.bpm.container.impl.threading.se.SeExecutorService
executeLongRunning, executeShortRunning, getExecuteJobsRunnable, schedule
-
Field Details
-
threadPoolQueue
-
-
Constructor Details
-
JmxManagedThreadPool
-
-
Method Details
-
start
- Specified by:
start
in interfacePlatformService<JmxManagedThreadPool>
-
stop
- Specified by:
stop
in interfacePlatformService<JmxManagedThreadPool>
-
getValue
- Specified by:
getValue
in interfacePlatformService<JmxManagedThreadPool>
-
setCorePoolSize
public void setCorePoolSize(int corePoolSize) - Specified by:
setCorePoolSize
in interfaceJmxManagedThreadPoolMBean
-
setMaximumPoolSize
public void setMaximumPoolSize(int maximumPoolSize) - Specified by:
setMaximumPoolSize
in interfaceJmxManagedThreadPoolMBean
-
getMaximumPoolSize
public int getMaximumPoolSize()- Specified by:
getMaximumPoolSize
in interfaceJmxManagedThreadPoolMBean
-
setKeepAliveTime
-
purgeThreadPool
public void purgeThreadPool()- Specified by:
purgeThreadPool
in interfaceJmxManagedThreadPoolMBean
-
getPoolSize
public int getPoolSize()- Specified by:
getPoolSize
in interfaceJmxManagedThreadPoolMBean
-
getActiveCount
public int getActiveCount()- Specified by:
getActiveCount
in interfaceJmxManagedThreadPoolMBean
-
getLargestPoolSize
public int getLargestPoolSize()- Specified by:
getLargestPoolSize
in interfaceJmxManagedThreadPoolMBean
-
getTaskCount
public long getTaskCount()- Specified by:
getTaskCount
in interfaceJmxManagedThreadPoolMBean
-
getCompletedTaskCount
public long getCompletedTaskCount()- Specified by:
getCompletedTaskCount
in interfaceJmxManagedThreadPoolMBean
-
getQueueCount
public int getQueueCount()- Specified by:
getQueueCount
in interfaceJmxManagedThreadPoolMBean
-
getQueueAddlCapacity
public int getQueueAddlCapacity() -
getThreadPoolExecutor
-