|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSelectorThread
org.mortbay.jetty.grizzly.JettySelectorThread
org.mortbay.jetty.grizzly.JettyMultiSelectorThread
public class JettyMultiSelectorThread
Specialized SelectorThread
that only handle OP_READ.
Field Summary | |
---|---|
static int |
countName
Int used to differenciate thsi instance |
Constructor Summary | |
---|---|
JettyMultiSelectorThread()
|
Method Summary | |
---|---|
void |
addChannel(SocketChannel channel)
Add a Channel to be processed by this
Selector |
int |
getCurrentBusyProcessorThreads()
Provides the count of request threads that are currently being processed by the container |
ReadTask |
getReadTask(SelectionKey key)
Return a ReadTask configured to use this instance. |
void |
initEndpoint()
Initialize this SelectorThread |
void |
startEndpoint()
Start and wait for incoming connection |
Methods inherited from class org.mortbay.jetty.grizzly.JettySelectorThread |
---|
enableSelectionKeys, expireIdleKeys, getGrizzlyConnector, getReadTask, initAlgorithm, initMultiSelectors, isUseTemporarySelector, newPipeline, newProcessorTask, newReadTask, setGrizzlyConnector, setThreadPool, setUseTemporarySelector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int countName
Constructor Detail |
---|
public JettyMultiSelectorThread()
Method Detail |
---|
public void addChannel(SocketChannel channel) throws IOException, ClosedChannelException
Channel
to be processed by this
Selector
IOException
ClosedChannelException
public void initEndpoint() throws IOException, InstantiationException
SelectorThread
IOException
InstantiationException
public void startEndpoint() throws IOException, InstantiationException
IOException
InstantiationException
public ReadTask getReadTask(SelectionKey key) throws IOException
ReadTask
configured to use this instance.
IOException
public int getCurrentBusyProcessorThreads()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |