threadPool.numberOfAvailableThreads(), stringNumberOfAvailableThreads, "count",
threadPool.getWorkQueue(0).toString(),
time, time);
currentNumberOfThreads =
new BoundedRangeStatisticImpl(
threadPool.currentNumberOfThreads(), threadPool.maximumNumberOfThreads(), threadPool.minimumNumberOfThreads(), java.lang.Long.MAX_VALUE, 0,
stringCurrentNumberOfThreads, "count",
threadPool.getWorkQueue(0).toString(),
time, time);
averageWorkCompletionTime =
new BoundedRangeStatisticImpl(
threadPool.averageWorkCompletionTime(), 0, 0, java.lang.Long.MAX_VALUE, 0,
stringAverageWorkCompletionTime, "Milliseconds",
threadPool.getWorkQueue(0).toString(),
time, time);
// WorkQueue workItems = threadPool.getWorkQueue(0);
totalWorkItemsAdded =
new CountStatisticImpl(
workQueue.totalWorkItemsAdded(), stringTotalWorkItemsAdded, "count",
workQueue.getName(),
time, time);
numberOfWorkItemsInQueue =
new BoundedRangeStatisticImpl(
workQueue.workItemsInQueue(), 0, 0, java.lang.Long.MAX_VALUE, 0,
stringNumberOfWorkItemsInQueue, "count",
workQueue.getName(),
time, time);
averageTimeInQueue =
new BoundedRangeStatisticImpl(
workQueue.averageTimeInQueue(), 0, 0, java.lang.Long.MAX_VALUE, 0,
stringAverageTimeInQueue, "Milliseconds",
workQueue.getName(),
time, time);