Method Summary |
|
protected void | checkParachute() |
protected SSLEngine | createSSLEngine() |
protected Worker | createWorkerThread() Create (or allocate) and return an available processor for use in
processing a specific HTTP request, if possible. |
public void | destroy() Deallocate NIO memory pools, and close server socket. |
public int | getAcceptorThreadCount() |
public int | getAcceptorThreadPriority() |
public InetAddress | getAddress() |
public String | getAlgorithm() |
public int | getBacklog() |
public String | getCiphers() |
public boolean | getClientAuth() |
public Poller | getCometPoller0() The socket poller used for Comet support. |
public int | getCurrentThreadCount() Return the amount of threads that are managed by the pool. |
public int | getCurrentThreadsBusy() Return the amount of threads currently busy. |
public boolean | getDaemon() |
public Executor | getExecutor() |
public Handler | getHandler() |
public int | getKeepAliveCount() Number of keepalive sockets. |
public String | getKeystore() |
public String | getKeystoreFile() |
public String | getKeystorePass() |
public String | getKeystoreType() |
public int | getMaxSpareThreads() Dummy maxSpareThreads property. |
public int | getMaxThreads() |
public int | getMinSpareThreads() Dummy minSpareThreads property. |
public String | getName() |
public int | getOomParachute() |
public byte[] | getOomParachuteData() |
public Poller | getPoller0() |
public int | getPollerThreadCount() |
public int | getPollerThreadPriority() |
public int | getPort() |
public int | getReadBufSize() |
public SSLContext | getSSLContext() |
public boolean | getSecure() |
public NioSelectorPool | getSelectorPool() |
public long | getSelectorTimeout() |
protected int | getSequence() Get a sequence number used for thread naming. |
public int | getSoLinger() Socket linger. |
public int | getSoTimeout() Socket timeout. |
public SocketProperties | getSocketProperties() |
public String | getSslProtocol() |
public boolean | getTcpNoDelay() Socket TCP no delay. |
public int | getThreadPriority() |
public boolean | getUseComet() |
public boolean | getUseExecutor() |
public boolean | getUseSendfile() |
protected Worker | getWorkerThread() Return a new worker thread, and block while to worker is available. |
public int | getWriteBufSize() |
public void | init() Initialize the endpoint. |
public boolean | isPaused() Return the state of the endpoint. |
public boolean | isRunning() Return the state of the endpoint. |
public boolean | isSSLEnabled() |
protected boolean | isWorkerAvailable() Returns true if a worker thread is available for processing. |
protected Worker | newWorkerThread() Create and return a new processor suitable for processing HTTP
requests and returning the corresponding responses. |
public void | pause() Pause the endpoint, which will make it stop accepting new sockets. |
protected boolean | processSocket(NioChannel socket) Process given socket. |
protected boolean | processSocket(NioChannel socket, SocketStatus status) Process given socket for an event. |
protected boolean | processSocket(NioChannel socket, SocketStatus status, boolean dispatch) |
protected boolean | reclaimParachute(boolean force) |
protected void | recycleWorkerThread(Worker workerThread) Recycle the specified Processor so that it can be used again. |
protected void | releaseCaches() |
public void | resume() Resume the endpoint, which will make it start accepting new sockets
again. |
public void | setAcceptorThreadCount(int acceptorThreadCount) |
public void | setAcceptorThreadPriority(int acceptorThreadPriority) |
public void | setAddress(InetAddress address) |
public void | setAlgorithm(String s) |
public void | setBacklog(int backlog) |
public void | setCiphers(String s) |
public void | setClientAuth(boolean b) |
public void | setDaemon(boolean b) |
public void | setExecutor(Executor executor) |
public void | setHandler(Handler handler) |
public void | setKeystore(String s) |
public void | setKeystoreFile(String s) |
public void | setKeystorePass(String s) |
public void | setKeystoreType(String s) |
public void | setMaxThreads(int maxThreads) |
public void | setName(String name) |
public void | setOomParachute(int oomParachute) |
public void | setOomParachuteData(byte[] oomParachuteData) |
public void | setPollerThreadCount(int pollerThreadCount) |
public void | setPollerThreadPriority(int pollerThreadPriority) |
public void | setPort(int port) |
public void | setProperty(String name, String value) |
public void | setSSLContext(SSLContext c) |
public void | setSSLEnabled(boolean SSLEnabled) |
public void | setSecure(boolean b) |
public void | setSelectorPool(NioSelectorPool selectorPool) |
public void | setSelectorTimeout(long timeout) |
public void | setSoLinger(int soLinger) |
public void | setSoTimeout(int soTimeout) |
protected boolean | setSocketOptions(SocketChannel socket) Process the specified connection. |
public void | setSocketProperties(SocketProperties socketProperties) |
public void | setSslEnabledProtocols(String s) |
public void | setSslProtocol(String s) |
public void | setTcpNoDelay(boolean tcpNoDelay) |
public void | setThreadPriority(int threadPriority) |
public void | setUseComet(boolean useComet) |
public void | setUseExecutor(boolean useexec) |
public void | setUseSendfile(boolean useSendfile) |
public void | start() Start the NIO endpoint, creating acceptor, poller threads. |
public void | stop() Stop the endpoint. |
protected void | unlockAccept() Unlock the server socket accept using a bogus connection. |