org.cometd.benchmark
Class MonitoringQueuedThreadPool

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.util.thread.QueuedThreadPool
          extended by org.cometd.benchmark.MonitoringQueuedThreadPool
All Implemented Interfaces:
Executor, 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

public class MonitoringQueuedThreadPool
extends org.eclipse.jetty.util.thread.QueuedThreadPool


Nested Class Summary
static class MonitoringQueuedThreadPool.MonitoringBlockingArrayQueue
           
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.ThreadPool
org.eclipse.jetty.util.thread.ThreadPool.SizedThreadPool
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
MonitoringQueuedThreadPool(int maxThreads)
           
 
Method Summary
 boolean dispatch(Runnable job)
           
 long getAverageQueueLatency()
           
 int getMaxActiveThreads()
           
 long getMaxQueueLatency()
           
 int getMaxQueueSize()
           
 void reset()
           
 
Methods inherited from class org.eclipse.jetty.util.thread.QueuedThreadPool
doStart, doStop, dump, dump, dumpThread, execute, getIdleThreads, getMaxIdleTimeMs, getMaxQueued, getMaxStopTimeMs, getMaxThreads, getMinThreads, getName, getQueue, getThreads, getThreadsPriority, interruptThread, isDaemon, isDetailedDump, isLowOnThreads, join, newThread, runJob, setDaemon, setDetailedDump, setMaxIdleTimeMs, setMaxQueued, setMaxStopTimeMs, setMaxThreads, setMinThreads, setName, setThreadsPriority, stopThread, toString
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitoringQueuedThreadPool

public MonitoringQueuedThreadPool(int maxThreads)
Method Detail

dispatch

public boolean dispatch(Runnable job)
Specified by:
dispatch in interface org.eclipse.jetty.util.thread.ThreadPool
Overrides:
dispatch in class org.eclipse.jetty.util.thread.QueuedThreadPool

reset

public void reset()

getMaxActiveThreads

public int getMaxActiveThreads()

getMaxQueueSize

public int getMaxQueueSize()

getAverageQueueLatency

public long getAverageQueueLatency()

getMaxQueueLatency

public long getMaxQueueLatency()


Copyright © 2008-2012 Dojo Foundation. All Rights Reserved.