|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.net.AbstractEndpoint org.apache.tomcat.util.net.AprEndpoint
public class AprEndpoint
APR tailored thread pool, providing the following services:
Nested Class Summary | |
---|---|
protected class |
AprEndpoint.Acceptor
The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor. |
protected class |
AprEndpoint.AsyncTimeout
Async timeout thread |
static interface |
AprEndpoint.Handler
Bare bones interface used for socket processing. |
class |
AprEndpoint.Poller
Poller class. |
class |
AprEndpoint.Sendfile
Sendfile class. |
static class |
AprEndpoint.SendfileData
SendfileData class. |
protected class |
AprEndpoint.SocketEventProcessor
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool. |
protected class |
AprEndpoint.SocketProcessor
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool. |
protected class |
AprEndpoint.SocketWithOptionsProcessor
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool. |
Nested classes/interfaces inherited from class org.apache.tomcat.util.net.AbstractEndpoint |
---|
AbstractEndpoint.BindState |
Field Summary | |
---|---|
protected int |
cometPollerRoundRobin
|
protected AprEndpoint.Poller[] |
cometPollers
The socket poller used for Comet support. |
protected boolean |
deferAccept
Defer accept. |
protected AprEndpoint.Handler |
handler
Handling of accepted sockets. |
protected int |
pollerRoundRobin
|
protected AprEndpoint.Poller[] |
pollers
The socket poller. |
protected int |
pollerThreadCount
Poller thread count. |
protected int |
pollTime
Poll interval, in microseconds. |
protected long |
rootPool
Root APR memory pool. |
protected int |
sendfileRoundRobin
|
protected AprEndpoint.Sendfile[] |
sendfiles
The static file sender. |
protected int |
sendfileSize
Size of the sendfile (= concurrent files which can be served). |
protected int |
sendfileThreadCount
Sendfile thread count. |
protected long |
serverSock
Server socket "pointer". |
protected long |
serverSockPool
APR memory pool for the server socket. |
protected String |
SSLCACertificateFile
SSL CA certificate file. |
protected String |
SSLCACertificatePath
SSL CA certificate path. |
protected String |
SSLCARevocationFile
SSL CA revocation file. |
protected String |
SSLCARevocationPath
SSL CA revocation path. |
protected String |
SSLCertificateChainFile
SSL certificate chain file. |
protected String |
SSLCertificateFile
SSL certificate file. |
protected String |
SSLCertificateKeyFile
SSL certificate key file. |
protected String |
SSLCipherSuite
SSL cipher suite. |
protected long |
sslContext
SSL context. |
protected boolean |
SSLInsecureRenegotiation
SSL allow insecure renegotiation for the the client that does not support the secure renegotiation. |
protected String |
SSLPassword
SSL password (if a cert is encrypted, and no password has been provided, a callback will ask for a password). |
protected String |
SSLProtocol
SSL protocols. |
protected String |
SSLVerifyClient
SSL verify client. |
protected int |
SSLVerifyDepth
SSL verify depth. |
protected boolean |
useComet
Allow comet request handling. |
protected boolean |
useSendfile
Use sendfile for sending static files. |
protected ConcurrentLinkedQueue<SocketWrapper<Long>> |
waitingRequests
|
Fields inherited from class org.apache.tomcat.util.net.AbstractEndpoint |
---|
acceptors, acceptorThreadCount, acceptorThreadPriority, attributes, internalExecutor, paused, running, sm, socketProperties, threadPriority |
Constructor Summary | |
---|---|
AprEndpoint()
|
Method Summary | |
---|---|
protected long |
allocatePoller(int size,
long pool,
int timeout)
Allocate a new poller of the specified size. |
void |
bind()
Initialize the endpoint. |
protected AbstractEndpoint.Acceptor |
createAcceptor()
Hook to allow Endpoints to provide a specific Acceptor implementation. |
AprEndpoint.Poller |
getCometPoller()
|
boolean |
getDeferAccept()
|
AprEndpoint.Handler |
getHandler()
|
int |
getKeepAliveCount()
Number of keepalive sockets. |
int |
getLocalPort()
Port in use. |
protected Log |
getLog()
|
AprEndpoint.Poller |
getPoller()
|
int |
getPollerThreadCount()
|
int |
getPollTime()
|
AprEndpoint.Sendfile |
getSendfile()
|
int |
getSendfileCount()
Number of sendfile sockets. |
int |
getSendfileSize()
|
int |
getSendfileThreadCount()
|
String |
getSSLCACertificateFile()
|
String |
getSSLCACertificatePath()
|
String |
getSSLCARevocationFile()
|
String |
getSSLCARevocationPath()
|
String |
getSSLCertificateChainFile()
|
String |
getSSLCertificateFile()
|
String |
getSSLCertificateKeyFile()
|
String |
getSSLCipherSuite()
|
boolean |
getSSLInsecureRenegotiation()
|
String |
getSSLPassword()
|
String |
getSSLProtocol()
|
String |
getSSLVerifyClient()
|
int |
getSSLVerifyDepth()
|
boolean |
getUseComet()
|
boolean |
getUseCometTimeout()
|
boolean |
getUsePolling()
|
boolean |
getUseSendfile()
|
protected boolean |
processSocket(long socket)
Process given socket. |
protected boolean |
processSocket(long socket,
SocketStatus status)
Process given socket for an event. |
boolean |
processSocketAsync(SocketWrapper<Long> socket,
SocketStatus status)
|
protected boolean |
processSocketWithOptions(long socket)
Process given socket. |
void |
setDeferAccept(boolean deferAccept)
|
void |
setHandler(AprEndpoint.Handler handler)
|
void |
setPollerThreadCount(int pollerThreadCount)
|
void |
setPollTime(int pollTime)
|
void |
setSendfileSize(int sendfileSize)
|
void |
setSendfileThreadCount(int sendfileThreadCount)
|
protected boolean |
setSocketOptions(long socket)
Process the specified connection. |
void |
setSSLCACertificateFile(String SSLCACertificateFile)
|
void |
setSSLCACertificatePath(String SSLCACertificatePath)
|
void |
setSSLCARevocationFile(String SSLCARevocationFile)
|
void |
setSSLCARevocationPath(String SSLCARevocationPath)
|
void |
setSSLCertificateChainFile(String SSLCertificateChainFile)
|
void |
setSSLCertificateFile(String SSLCertificateFile)
|
void |
setSSLCertificateKeyFile(String SSLCertificateKeyFile)
|
void |
setSSLCipherSuite(String SSLCipherSuite)
|
void |
setSSLInsecureRenegotiation(boolean SSLInsecureRenegotiation)
|
void |
setSSLPassword(String SSLPassword)
|
void |
setSSLProtocol(String SSLProtocol)
|
void |
setSSLVerifyClient(String SSLVerifyClient)
|
void |
setSSLVerifyDepth(int SSLVerifyDepth)
|
void |
setUseComet(boolean useComet)
|
void |
setUseSendfile(boolean useSendfile)
|
void |
startInternal()
Start the APR endpoint, creating acceptor, poller and sendfile threads. |
void |
stopInternal()
Stop the endpoint. |
void |
unbind()
Deallocate APR memory pools, and close server socket. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long rootPool
protected long serverSock
protected long serverSockPool
protected long sslContext
protected ConcurrentLinkedQueue<SocketWrapper<Long>> waitingRequests
protected boolean deferAccept
protected int sendfileSize
protected AprEndpoint.Handler handler
protected int pollTime
protected boolean useSendfile
protected boolean useComet
protected int sendfileThreadCount
protected int pollerThreadCount
protected AprEndpoint.Poller[] pollers
protected int pollerRoundRobin
protected AprEndpoint.Poller[] cometPollers
protected int cometPollerRoundRobin
protected AprEndpoint.Sendfile[] sendfiles
protected int sendfileRoundRobin
protected String SSLProtocol
protected String SSLPassword
protected String SSLCipherSuite
protected String SSLCertificateFile
protected String SSLCertificateKeyFile
protected String SSLCertificateChainFile
protected String SSLCACertificatePath
protected String SSLCACertificateFile
protected String SSLCARevocationPath
protected String SSLCARevocationFile
protected String SSLVerifyClient
protected int SSLVerifyDepth
protected boolean SSLInsecureRenegotiation
Constructor Detail |
---|
public AprEndpoint()
Method Detail |
---|
public void setDeferAccept(boolean deferAccept)
public boolean getDeferAccept()
getDeferAccept
in class AbstractEndpoint
public void setSendfileSize(int sendfileSize)
public int getSendfileSize()
public void setHandler(AprEndpoint.Handler handler)
public AprEndpoint.Handler getHandler()
public int getPollTime()
public void setPollTime(int pollTime)
public void setUseSendfile(boolean useSendfile)
public boolean getUseSendfile()
getUseSendfile
in class AbstractEndpoint
public void setUseComet(boolean useComet)
public boolean getUseComet()
getUseComet
in class AbstractEndpoint
public boolean getUseCometTimeout()
getUseCometTimeout
in class AbstractEndpoint
public boolean getUsePolling()
getUsePolling
in class AbstractEndpoint
public void setSendfileThreadCount(int sendfileThreadCount)
public int getSendfileThreadCount()
public void setPollerThreadCount(int pollerThreadCount)
public int getPollerThreadCount()
public AprEndpoint.Poller getPoller()
public AprEndpoint.Poller getCometPoller()
public AprEndpoint.Sendfile getSendfile()
public String getSSLProtocol()
public void setSSLProtocol(String SSLProtocol)
public String getSSLPassword()
public void setSSLPassword(String SSLPassword)
public String getSSLCipherSuite()
public void setSSLCipherSuite(String SSLCipherSuite)
public String getSSLCertificateFile()
public void setSSLCertificateFile(String SSLCertificateFile)
public String getSSLCertificateKeyFile()
public void setSSLCertificateKeyFile(String SSLCertificateKeyFile)
public String getSSLCertificateChainFile()
public void setSSLCertificateChainFile(String SSLCertificateChainFile)
public String getSSLCACertificatePath()
public void setSSLCACertificatePath(String SSLCACertificatePath)
public String getSSLCACertificateFile()
public void setSSLCACertificateFile(String SSLCACertificateFile)
public String getSSLCARevocationPath()
public void setSSLCARevocationPath(String SSLCARevocationPath)
public String getSSLCARevocationFile()
public void setSSLCARevocationFile(String SSLCARevocationFile)
public String getSSLVerifyClient()
public void setSSLVerifyClient(String SSLVerifyClient)
public int getSSLVerifyDepth()
public void setSSLVerifyDepth(int SSLVerifyDepth)
public void setSSLInsecureRenegotiation(boolean SSLInsecureRenegotiation)
public boolean getSSLInsecureRenegotiation()
public int getLocalPort()
getLocalPort
in class AbstractEndpoint
public int getKeepAliveCount()
public int getSendfileCount()
public void bind() throws Exception
bind
in class AbstractEndpoint
Exception
public void startInternal() throws Exception
startInternal
in class AbstractEndpoint
Exception
public void stopInternal()
stopInternal
in class AbstractEndpoint
public void unbind() throws Exception
unbind
in class AbstractEndpoint
Exception
protected AbstractEndpoint.Acceptor createAcceptor()
AbstractEndpoint
createAcceptor
in class AbstractEndpoint
protected boolean setSocketOptions(long socket)
protected long allocatePoller(int size, long pool, int timeout)
protected boolean processSocketWithOptions(long socket)
protected boolean processSocket(long socket)
protected boolean processSocket(long socket, SocketStatus status)
public boolean processSocketAsync(SocketWrapper<Long> socket, SocketStatus status)
protected Log getLog()
getLog
in class AbstractEndpoint
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |