|
Apache Tomcat 7.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.coyote.ajp.AjpAprProtocol
public class AjpAprProtocol
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
Nested Class Summary | |
---|---|
protected static class |
AjpAprProtocol.AjpConnectionHandler
|
Field Summary | |
---|---|
protected Hashtable<String,Object> |
attributes
Configuration attributes. |
protected String |
domain
|
protected AprEndpoint |
endpoint
Associated APR endpoint. |
protected MBeanServer |
mserver
|
protected ObjectName |
oname
|
protected int |
packetSize
AJP packet size. |
protected int |
processorCache
Processor cache. |
protected String |
requiredSecret
Required secret. |
protected ObjectName |
rgOname
|
protected static StringManager |
sm
The string manager for this package. |
protected boolean |
tomcatAuthentication
Should authentication be done in the native webserver layer, or in the Servlet container ? |
protected ObjectName |
tpOname
|
Constructor Summary | |
---|---|
AjpAprProtocol()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the protocol (optional). |
Adapter |
getAdapter()
|
InetAddress |
getAddress()
|
Object |
getAttribute(String key)
|
Iterator<String> |
getAttributeNames()
|
int |
getBacklog()
|
String |
getDomain()
|
Executor |
getExecutor()
The executor, provide access to the underlying thread pool. |
int |
getKeepAliveTimeout()
The number of seconds Tomcat will wait for a subsequent request before closing the connection. |
int |
getMaxThreads()
|
String |
getName()
|
ObjectName |
getObjectName()
|
int |
getPacketSize()
|
int |
getPollerSize()
|
int |
getPollTime()
|
int |
getPort()
|
int |
getProcessorCache()
|
int |
getSoLinger()
|
int |
getSoTimeout()
|
boolean |
getTcpNoDelay()
|
int |
getThreadPriority()
|
boolean |
getTomcatAuthentication()
|
boolean |
getUseSendfile()
|
void |
init()
Start the protocol |
void |
pause()
Pause the protocol (optional). |
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector |
void |
setAddress(InetAddress ia)
|
void |
setAttribute(String name,
Object value)
Pass config info |
void |
setBacklog(int backlog)
|
void |
setExecutor(Executor executor)
|
void |
setKeepAliveTimeout(int timeout)
|
void |
setMaxThreads(int maxThreads)
|
void |
setPacketSize(int packetSize)
|
void |
setPollerSize(int pollerSize)
|
void |
setPollTime(int pollTime)
|
void |
setPort(int port)
|
void |
setProcessorCache(int processorCache)
|
void |
setRequiredSecret(String requiredSecret)
|
void |
setSoLinger(int soLinger)
|
void |
setSoTimeout(int soTimeout)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setThreadPriority(int threadPriority)
|
void |
setTomcatAuthentication(boolean tomcatAuthentication)
|
void |
setUseSendfile(boolean useSendfile)
|
void |
start()
Start the protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
protected ObjectName tpOname
protected ObjectName rgOname
protected AprEndpoint endpoint
protected Hashtable<String,Object> attributes
protected int processorCache
protected boolean tomcatAuthentication
protected String requiredSecret
protected int packetSize
protected String domain
protected ObjectName oname
protected MBeanServer mserver
Constructor Detail |
---|
public AjpAprProtocol()
Method Detail |
---|
public void setAttribute(String name, Object value)
setAttribute
in interface ProtocolHandler
public Object getAttribute(String key)
getAttribute
in interface ProtocolHandler
public Iterator<String> getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public void init() throws Exception
init
in interface ProtocolHandler
Exception
public void start() throws Exception
ProtocolHandler
start
in interface ProtocolHandler
Exception
public void pause() throws Exception
ProtocolHandler
pause
in interface ProtocolHandler
Exception
public void resume() throws Exception
ProtocolHandler
resume
in interface ProtocolHandler
Exception
public void destroy() throws Exception
ProtocolHandler
destroy
in interface ProtocolHandler
Exception
public String getName()
public int getProcessorCache()
public void setProcessorCache(int processorCache)
public Executor getExecutor()
ProtocolHandler
getExecutor
in interface ProtocolHandler
public void setExecutor(Executor executor)
public int getMaxThreads()
public void setMaxThreads(int maxThreads)
public int getThreadPriority()
public void setThreadPriority(int threadPriority)
public int getBacklog()
public void setBacklog(int backlog)
public int getPort()
public void setPort(int port)
public InetAddress getAddress()
public void setAddress(InetAddress ia)
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 boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public void setRequiredSecret(String requiredSecret)
public int getPacketSize()
public void setPacketSize(int packetSize)
public int getKeepAliveTimeout()
public void setKeepAliveTimeout(int timeout)
public boolean getUseSendfile()
public void setUseSendfile(boolean useSendfile)
public int getPollTime()
public void setPollTime(int pollTime)
public void setPollerSize(int pollerSize)
public int getPollerSize()
public ObjectName getObjectName()
public String getDomain()
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
|
Apache Tomcat 7.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |