super.initialize("org.glassfish.enterprise.iiop.util.ThreadPoolStats");
final long time = System.currentTimeMillis();
numberOfBusyThreads =
new CountStatisticImpl(threadPool.numberOfBusyThreads(), stringNumberOfBusyThreads, "COUNT",
threadPool.getWorkQueue(0).toString(),
time, time);
numberOfAvailableThreads =
new CountStatisticImpl(
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 =