| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.net.BaseEndpoint
public abstract class BaseEndpoint
APR tailored thread pool, providing the following services:
| Field Summary | |
|---|---|
| protected  java.net.InetAddress | addressAddress for the server socket. | 
| protected  int | backlogAllows the server developer to specify the backlog that should be used for server sockets. | 
| static java.lang.String | CERTIFICATE_KEYThe Request attribute key for the client certificate chain. | 
| static java.lang.String | CIPHER_SUITE_KEYThe Request attribute key for the cipher suite. | 
| protected  int | curThreadsCurrent worker threads count. | 
| protected  int | curThreadsBusyCurrent worker threads busy count. | 
| protected  boolean | daemonThe default is true - the created threads will be in daemon mode. | 
| protected  java.util.concurrent.Executor | executorExternal Executor based thread pool. | 
| protected  boolean | initializedTrack the initialization state of the endpoint. | 
| static java.lang.String | KEY_SIZE_KEYThe Request attribute key for the key size. | 
| protected static Log | log | 
| protected  int | maxThreadsMaximum amount of worker threads. | 
| protected  java.lang.String | nameName of the thread pool, which will be used for naming child threads. | 
| protected  boolean | pausedWill be set to true whenever the endpoint is paused. | 
| protected  int | portServer socket port. | 
| protected  boolean | runningRunning state of the endpoint. | 
| protected  int | sequenceSequence number used to generate thread names. | 
| static java.lang.String | SESSION_ID_KEYThe Request attribute key for the session id. | 
| protected static StringManager | sm | 
| protected  int | soLingerSocket linger. | 
| protected  int | soTimeoutSocket timeout. | 
| protected  boolean | tcpNoDelaySocket TCP no delay. | 
| protected  int | threadPriorityPriority of the acceptor and poller threads. | 
| Constructor Summary | |
|---|---|
| BaseEndpoint() | |
| Method Summary | |
|---|---|
| abstract  void | destroy()Deallocate APR memory pools, and close server socket. | 
|  java.net.InetAddress | getAddress() | 
|  int | getBacklog() | 
|  int | getCurrentThreadCount()Return the amount of threads that are managed by the pool. | 
|  int | getCurrentThreadsBusy()Return the amount of threads currently busy. | 
|  boolean | getDaemon() | 
|  java.util.concurrent.Executor | getExecutor() | 
|  int | getMaxSpareThreads()Dummy maxSpareThreads property. | 
|  int | getMaxThreads() | 
|  int | getMinSpareThreads()Dummy minSpareThreads property. | 
|  java.lang.String | getName() | 
|  int | getPort() | 
| protected  int | getSequence()Get a sequence number used for thread naming. | 
|  int | getSoLinger() | 
|  int | getSoTimeout() | 
|  boolean | getTcpNoDelay() | 
|  int | getThreadPriority() | 
| abstract  void | init()Initialize the endpoint. | 
|  boolean | isPaused()Return the state of the endpoint. | 
|  boolean | isRunning()Return the state of the endpoint. | 
|  void | pause()Pause the endpoint, which will make it stop accepting new sockets. | 
|  void | resume()Resume the endpoint, which will make it start accepting new sockets again. | 
|  void | setAddress(java.net.InetAddress address) | 
|  void | setBacklog(int backlog) | 
|  void | setDaemon(boolean b) | 
|  void | setExecutor(java.util.concurrent.Executor executor) | 
|  void | setMaxThreads(int maxThreads) | 
|  void | setName(java.lang.String name) | 
|  void | setPort(int port) | 
|  void | setSoLinger(int soLinger) | 
|  void | setSoTimeout(int soTimeout) | 
|  void | setTcpNoDelay(boolean tcpNoDelay) | 
|  void | setThreadPriority(int threadPriority) | 
| abstract  void | start()Start the APR endpoint, creating acceptor, poller and sendfile threads. | 
| abstract  void | stop()Stop the endpoint. | 
| protected  void | unlockAccept()Unlock the server socket accept using a bugus connection. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static Log log
protected static StringManager sm
public static final java.lang.String CIPHER_SUITE_KEY
public static final java.lang.String KEY_SIZE_KEY
public static final java.lang.String CERTIFICATE_KEY
public static final java.lang.String SESSION_ID_KEY
protected volatile boolean running
protected volatile boolean paused
protected boolean initialized
protected int curThreadsBusy
protected int curThreads
protected int sequence
protected java.util.concurrent.Executor executor
protected int maxThreads
protected int threadPriority
protected int port
protected java.net.InetAddress address
protected int backlog
protected boolean tcpNoDelay
protected int soLinger
protected int soTimeout
protected boolean daemon
protected java.lang.String name
| Constructor Detail | 
|---|
public BaseEndpoint()
| Method Detail | 
|---|
public void setExecutor(java.util.concurrent.Executor executor)
public java.util.concurrent.Executor getExecutor()
public void setMaxThreads(int maxThreads)
public int getMaxThreads()
public void setThreadPriority(int threadPriority)
public int getThreadPriority()
public int getPort()
public void setPort(int port)
public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress address)
public void setBacklog(int backlog)
public int getBacklog()
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
public int getSoLinger()
public void setSoLinger(int soLinger)
public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public void setDaemon(boolean b)
public boolean getDaemon()
public void setName(java.lang.String name)
public java.lang.String getName()
public int getMaxSpareThreads()
public int getMinSpareThreads()
public int getCurrentThreadCount()
public int getCurrentThreadsBusy()
public boolean isRunning()
public boolean isPaused()
public abstract void init()
                   throws java.lang.Exception
java.lang.Exception
public abstract void start()
                    throws java.lang.Exception
java.lang.Exceptionpublic void pause()
public void resume()
public abstract void stop()
public abstract void destroy()
                      throws java.lang.Exception
java.lang.Exceptionprotected int getSequence()
protected void unlockAccept()
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||