super.initialize("com.sun.enterprise.admin.monitor.stats.ThreadPoolStats");
final long time = System.currentTimeMillis();
numberOfBusyThreads =
new MutableCountStatisticImpl(
new CountStatisticImpl( 0, stringNumberOfBusyThreads, "COUNT",
threadPool.getAttribute( stringNumberOfBusyThreads ).
getAttributeInfo().getDescription(),
time, time ));
numberOfAvailableThreads =
new MutableCountStatisticImpl(
new CountStatisticImpl( 0, stringNumberOfAvailableThreads, "count",
threadPool.getAttribute( stringNumberOfAvailableThreads ).
getAttributeInfo().getDescription(),
time, time ));
currentNumberOfThreads =
new MutableBoundedRangeStatisticImpl(
new BoundedRangeStatisticImpl( 0, 0, 0, java.lang.Long.MAX_VALUE, 0,
stringCurrentNumberOfThreads, "count",
threadPool.getAttribute( stringCurrentNumberOfThreads ).
getAttributeInfo().getDescription(),
time, time ));
averageWorkCompletionTime =
new MutableBoundedRangeStatisticImpl(
new BoundedRangeStatisticImpl( 0, 0, 0, java.lang.Long.MAX_VALUE, 0,
stringAverageWorkCompletionTime, "Milliseconds",
threadPool.getAttribute( stringAverageWorkCompletionTime ).
getAttributeInfo().getDescription(),
time, time ));
MonitoredObject workQueue = threadPool.getChild(
ORBConstants.WORKQUEUE_DEFAULT_NAME );
totalWorkItemsAdded =
new MutableCountStatisticImpl(
new CountStatisticImpl( 0, stringTotalWorkItemsAdded, "count",
workQueue.getAttribute( stringTotalWorkItemsAdded ).
getAttributeInfo().getDescription(),
time, time ));
numberOfWorkItemsInQueue =
new MutableBoundedRangeStatisticImpl(
new BoundedRangeStatisticImpl( 0, 0,0, java.lang.Long.MAX_VALUE, 0,
stringNumberOfWorkItemsInQueue, "count",
workQueue.getAttribute( stringNumberOfWorkItemsInQueue ).
getAttributeInfo( ).getDescription(),
time, time ));
averageTimeInQueue =
new MutableBoundedRangeStatisticImpl(
new BoundedRangeStatisticImpl( 0, 0, 0, java.lang.Long.MAX_VALUE, 0,
stringAverageTimeInQueue, "Milliseconds",
workQueue.getAttribute( stringAverageTimeInQueue ).
getAttributeInfo( ).getDescription(),
time, time ));