Method Summary |
|
protected long | allocatePoller(int size, long pool, int timeout) Allocate a new poller of the specified size. |
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 APR memory pools, and close server socket. |
public int | getAcceptorThreadCount() |
public InetAddress | getAddress() |
public int | getBacklog() |
public Poller | getCometPoller() |
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 int | getKeepAliveTimeout() |
public int | getMaxSpareThreads() Dummy maxSpareThreads property. |
public int | getMaxThreads() |
public int | getMinSpareThreads() Dummy minSpareThreads property. |
public String | getName() |
public int | getPollTime() |
public Poller | getPoller() |
public int | getPollerSize() |
public int | getPollerThreadCount() |
public int | getPort() |
public String | getSSLCACertificateFile() |
public String | getSSLCACertificatePath() |
public String | getSSLCARevocationFile() |
public String | getSSLCARevocationPath() |
public String | getSSLCertificateChainFile() |
public String | getSSLCertificateFile() |
public String | getSSLCertificateKeyFile() |
public String | getSSLCipherSuite() |
public String | getSSLPassword() |
public String | getSSLProtocol() |
public String | getSSLVerifyClient() |
public int | getSSLVerifyDepth() |
public Sendfile | getSendfile() |
public int | getSendfileCount() Number of sendfile sockets. |
public int | getSendfileSize() |
public int | getSendfileThreadCount() |
protected int | getSequence() Get a sequence number used for thread naming. |
public int | getSoLinger() |
public int | getSoTimeout() |
public boolean | getTcpNoDelay() |
public int | getThreadPriority() |
public boolean | getUseComet() |
public boolean | getUseSendfile() |
protected Worker | getWorkerThread() Return a new worker thread, and block while to worker is available. |
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 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(long socket) Process given socket. |
protected boolean | processSocket(long socket, SocketStatus status) Process given socket for an event. |
protected boolean | processSocketWithOptions(long socket) Process given socket. |
protected void | recycleWorkerThread(Worker workerThread) Recycle the specified Processor so that it can be used again. |
public void | resume() Resume the endpoint, which will make it start accepting new sockets
again. |
public void | setAcceptorThreadCount(int acceptorThreadCount) |
public void | setAddress(InetAddress address) |
public void | setBacklog(int backlog) |
public void | setDaemon(boolean b) |
public void | setExecutor(Executor executor) |
public void | setHandler(Handler handler) |
public void | setKeepAliveTimeout(int keepAliveTimeout) |
public void | setMaxThreads(int maxThreads) |
public void | setName(String name) |
public void | setPollTime(int pollTime) |
public void | setPollerSize(int pollerSize) |
public void | setPollerThreadCount(int pollerThreadCount) |
public void | setPort(int port) |
public void | setSSLCACertificateFile(String SSLCACertificateFile) |
public void | setSSLCACertificatePath(String SSLCACertificatePath) |
public void | setSSLCARevocationFile(String SSLCARevocationFile) |
public void | setSSLCARevocationPath(String SSLCARevocationPath) |
public void | setSSLCertificateChainFile(String SSLCertificateChainFile) |
public void | setSSLCertificateFile(String SSLCertificateFile) |
public void | setSSLCertificateKeyFile(String SSLCertificateKeyFile) |
public void | setSSLCipherSuite(String SSLCipherSuite) |
public void | setSSLEnabled(boolean SSLEnabled) |
public void | setSSLPassword(String SSLPassword) |
public void | setSSLProtocol(String SSLProtocol) |
public void | setSSLVerifyClient(String SSLVerifyClient) |
public void | setSSLVerifyDepth(int SSLVerifyDepth) |
public void | setSendfileSize(int sendfileSize) |
public void | setSendfileThreadCount(int sendfileThreadCount) |
public void | setSoLinger(int soLinger) |
public void | setSoTimeout(int soTimeout) |
protected boolean | setSocketOptions(long socket) Process the specified connection. |
public void | setTcpNoDelay(boolean tcpNoDelay) |
public void | setThreadPriority(int threadPriority) |
public void | setUseComet(boolean useComet) |
public void | setUseSendfile(boolean useSendfile) |
public void | start() Start the APR endpoint, creating acceptor, poller and sendfile threads. |
public void | stop() Stop the endpoint. |
protected void | unlockAccept() Unlock the server socket accept using a bugus connection. |