public interface ThreadPoolMBean
getIsCpuBound()).getCurrentThreads() and getActiveThreads()).LoadMBean, but only for this pool.getQueue(), getPendingAsyncTasks(), and getCurrQueueWaitMillis()).LoadMBean, but only for this pool.getThroughput() and getAvgExecTimeMillis()).getMaxQueue(), getMaxAsyncTasks(), and getAggregatedQueue()).startThreadInspection() and getAvgBlockedTime()).| Modifier and Type | Method and Description |
|---|---|
void |
endThreadInspection()
Disables the collections of usage statistics on the threads of this pool.
|
java.lang.Integer |
getActiveThreads() |
java.lang.Long |
getAggregatedQueue() |
java.lang.Long |
getAvgBlockedTime() |
java.lang.Long |
getAvgBlocksCount() |
java.lang.Long |
getAvgCPUTime() |
java.lang.Integer |
getAvgExecTimeMillis() |
java.lang.Integer |
getAvgQueueWaitMillis() |
java.lang.Integer |
getCurrentThreads() |
java.lang.Integer |
getCurrQueueWaitMillis() |
java.lang.Boolean |
getIsAsync() |
java.lang.Boolean |
getIsCpuBound() |
java.lang.Integer |
getMaxAsyncTasks() |
java.lang.Integer |
getMaxFreeThreads() |
java.lang.Long |
getMaxQueue() |
java.lang.Integer |
getMaxThreads() |
java.lang.Integer |
getPendingAsyncTasks() |
java.lang.Integer |
getQueue() |
java.lang.Double |
getThroughput() |
java.lang.Integer |
getWaitingThreads() |
void |
startThreadInspection()
Enables the collections of usage statistics on the threads of this pool
related to
getAvgBlocksCount(), getAvgBlockedTime(),
and getAvgCPUTime(), which are collected through JVM internal
services. |
java.lang.Integer getMaxThreads()
java.lang.Integer getMaxFreeThreads()
java.lang.Integer getMaxAsyncTasks()
getIsAsync()java.lang.Long getMaxQueue()
java.lang.Boolean getIsCpuBound()
getIsAsync()), it is, by convention, considered as cpu-bound,
even though the asynchronous operations may be blocking for their own
execution threads and, moreover, if a limit on asynchronous tasks
is configured, some tasks may be even blocked for some time in the pool
thread while being launched.java.lang.Boolean getIsAsync()
getQueue(),
getActiveThreads(),
getPendingAsyncTasks(),
getMaxAsyncTasks(),
AdapterSetMBean.getAuthenticationPoolQueue(),
AdapterSetMBean.getMessagesPoolQueue()java.lang.Integer getCurrentThreads()
java.lang.Integer getActiveThreads()
java.lang.Integer getWaitingThreads()
java.lang.Integer getQueue()
java.lang.Integer getPendingAsyncTasks()
getIsAsync()java.lang.Long getAggregatedQueue()
java.lang.Integer getAvgQueueWaitMillis()
java.lang.Integer getCurrQueueWaitMillis()
java.lang.Double getThroughput()
java.lang.Integer getAvgExecTimeMillis()
getIsAsync()) are also
covered and the average execution time of these operations is reported.
For any other pools the statistics is not measured and null is returned.void startThreadInspection()
getAvgBlocksCount(), getAvgBlockedTime(),
and getAvgCPUTime(), which are collected through JVM internal
services. Such services, in turn, should be enabled as well; see
LoadMBean.enableThreadInspection().getIsAsync()), the elaboration of these operations
is not inspected.void endThreadInspection()
startThreadInspection() for details. java.lang.Long getAvgBlocksCount()
startThreadInspection().java.lang.Long getAvgBlockedTime()
startThreadInspection().java.lang.Long getAvgCPUTime()
startThreadInspection().