com.sun.grizzly.http
Class StatsThreadPool
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
com.sun.grizzly.util.DefaultThreadPool
com.sun.grizzly.http.StatsThreadPool
- All Implemented Interfaces:
- ExtendedThreadPool, Thread.UncaughtExceptionHandler, Executor, ExecutorService
public class StatsThreadPool
- extends DefaultThreadPool
Internal FIFO used by the Worker Threads to pass information
between Task
objects.
- Author:
- Jean-Francois Arcand
Methods inherited from class com.sun.grizzly.util.DefaultThreadPool |
afterExecute, beforeExecute, getByteBufferType, getInitialByteBufferSize, getMaxQueuedTasksCount, getName, getPriority, getQueuedTasksCount, getQueueSize, setByteBufferType, setInitialByteBufferSize, setMaxQueuedTasksCount, setName, setPriority, start, stop, uncaughtException |
Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated |
Methods inherited from interface java.util.concurrent.ExecutorService |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
Methods inherited from interface com.sun.grizzly.util.ExtendedThreadPool |
getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getTaskCount, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize |
port
protected int port
- Port, which is served by this thread pool
threadPoolStat
protected transient ThreadPoolStatistic threadPoolStat
- The
ThreadPoolStatistic
objects used when gathering statistics.
StatsThreadPool
public StatsThreadPool()
StatsThreadPool
public StatsThreadPool(int maxTasksCount)
StatsThreadPool
public StatsThreadPool(int corePoolSize,
int maximumPoolSize,
int maxTasksCount,
long keepAliveTime,
TimeUnit unit)
getPort
public int getPort()
- Get the port number, which is served by the thread pool
- Returns:
- the port number, which is served by the thread pool
setPort
public void setPort(int port)
- Set the port number, which is served by the thread pool
- Parameters:
port
- the port number, which is served by the thread pool
setStatistic
public void setStatistic(ThreadPoolStatistic threadPoolStatistic)
- Set the
ThreadPoolStatistic
object used
to gather statistic;
getStatistic
public ThreadPoolStatistic getStatistic()
- Return the
ThreadPoolStatistic
object used
to gather statistic;
toString
public String toString()
- Overrides:
toString
in class DefaultThreadPool
injectToStringAttributes
protected void injectToStringAttributes(StringBuilder sb)
- Overrides:
injectToStringAttributes
in class DefaultThreadPool
Copyright © 2009 SUN Microsystems. All Rights Reserved.