Package org.cometd.benchmark
Class MonitoringQueuedThreadPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.util.thread.QueuedThreadPool
org.cometd.benchmark.MonitoringQueuedThreadPool
- All Implemented Interfaces:
Executor,ThreadFactory,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle,org.eclipse.jetty.util.thread.ThreadPool,org.eclipse.jetty.util.thread.ThreadPool.SizedThreadPool,org.eclipse.jetty.util.thread.TryExecutor
public class MonitoringQueuedThreadPool
extends org.eclipse.jetty.util.thread.QueuedThreadPool
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonitoringQueuedThreadPool.MonitoringBlockingArrayQueueNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors Constructor Description MonitoringQueuedThreadPool(int maxThreads) -
Method Summary
Modifier and Type Method Description voidexecute(Runnable job)longgetAverageQueueLatency()longgetAverageTaskLatency()intgetMaxActiveThreads()longgetMaxQueueLatency()intgetMaxQueueSize()longgetMaxTaskLatency()longgetTasks()voidreset()Methods inherited from class org.eclipse.jetty.util.thread.QueuedThreadPool
doStart, doStop, dump, dumpThread, getBusyThreads, getIdleThreads, getIdleTimeout, getLowThreadsThreshold, getMaxThreads, getMinThreads, getName, getQueue, getQueueSize, getReservedThreads, getThreadPoolBudget, getThreads, getThreadsPriority, interruptThread, isDaemon, isDetailedDump, isLowOnThreads, join, newThread, removeThread, runJob, setDaemon, setDetailedDump, setIdleTimeout, setLowThreadsThreshold, setMaxThreads, setMinThreads, setName, setQueue, setReservedThreads, setThreadPoolBudget, setThreadsPriority, startThread, toString, tryExecuteMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Constructor Details
-
MonitoringQueuedThreadPool
public MonitoringQueuedThreadPool(int maxThreads)
-
-
Method Details
-
execute
-
reset
public void reset() -
getTasks
public long getTasks() -
getMaxActiveThreads
public int getMaxActiveThreads() -
getMaxQueueSize
public int getMaxQueueSize() -
getAverageQueueLatency
public long getAverageQueueLatency() -
getMaxQueueLatency
public long getMaxQueueLatency() -
getMaxTaskLatency
public long getMaxTaskLatency() -
getAverageTaskLatency
public long getAverageTaskLatency()
-