|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.ThreadPoolStatistic
public class ThreadPoolStatistic
This class is a placeholde for gathering statistic
from a ExecutorService
Constructor Summary | |
---|---|
ThreadPoolStatistic(int port)
Constructor |
Method Summary | |
---|---|
boolean |
decrementOpenConnectionsCount(SelectableChannel channel)
Decrease the number of open connections, which are being handled by the Pipeline |
boolean |
gather(int queueLength)
Gather ExecutorService statistic. |
int |
getCountOverflows()
Total number of thread pool overflow |
int |
getCountQueued()
Gets the number of connections currently in the queue |
int |
getCountQueued15MinuteAverage()
Gets the average number of connections queued in the last 15 minutes |
int |
getCountQueued1MinuteAverage()
Gets the average number of connections queued in the last 1 minute |
int |
getCountQueued5MinuteAverage()
Gets the average number of connections queued in the last 5 minutes |
int |
getCountTotalConnections()
Gets the total number of connections that have been accepted. |
int |
getCountTotalQueued()
Gets the total number of connections that have been queued. |
int |
getMaxQueued()
Gets the maximum size of the connection queue |
int |
getOpenConnectionsCount()
Get the current number of open channels, which are being handled by the pipeline |
int |
getPeakQueued()
Gets the largest number of connections that were in the queue simultaneously. |
int |
getQueueSizeInBytes()
Get the maximum pending connection this ExecutorService
can handle. |
int |
getTicksTotalQueued()
Gets the total number of ticks that connections have spent in the queue. |
boolean |
incrementOpenConnectionsCount(SelectableChannel channel)
Increase the number of open connections, which are being handled by the Pipeline |
void |
incrementTotalAcceptCount()
|
void |
setQueueSizeInBytes(int maxQueueSizeInBytesCount)
Set the maximum pending connection this ExecutorService
can handle. |
void |
setThreadPool(ExecutorService threadPool)
|
void |
start()
Start gathering statistics. |
void |
stop()
Stop gathering statistics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadPoolStatistic(int port)
port
- Port number for which thread pool (connection) stats will be
gatheredMethod Detail |
---|
public void start()
public void stop()
public boolean gather(int queueLength)
ExecutorService
statistic.
public int getCountOverflows()
public int getPeakQueued()
public int getMaxQueued()
public int getCountTotalConnections()
public void setQueueSizeInBytes(int maxQueueSizeInBytesCount)
ExecutorService
can handle.
public int getQueueSizeInBytes()
ExecutorService
can handle.
public int getCountTotalQueued()
counttotalqueued
may be greater than or equal to
counttotalconnections
.
public int getCountQueued()
public int getTicksTotalQueued()
public int getCountQueued1MinuteAverage()
public int getCountQueued5MinuteAverage()
public int getCountQueued15MinuteAverage()
public void incrementTotalAcceptCount()
public void setThreadPool(ExecutorService threadPool)
public boolean incrementOpenConnectionsCount(SelectableChannel channel)
channel
- just open channel
public boolean decrementOpenConnectionsCount(SelectableChannel channel)
channel
- just closed channel
public int getOpenConnectionsCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |