org.apache.geronimo.tomcat.connector
Class AJP13ConnectorGBean

java.lang.Object
  extended by org.apache.geronimo.tomcat.BaseGBean
      extended by org.apache.geronimo.tomcat.connector.ConnectorGBean
          extended by org.apache.geronimo.tomcat.connector.AJP13ConnectorGBean
All Implemented Interfaces:
GBeanLifecycle, NetworkConnector, StatisticsProvider, Ajp13Protocol, CommonProtocol, TomcatWebConnector, ObjectRetriever

public class AJP13ConnectorGBean
extends ConnectorGBean
implements Ajp13Protocol, StatisticsProvider


Field Summary
protected  String connectHost
           
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.tomcat.connector.ConnectorGBean
connector, CONNECTOR_CONTAINER_REFERENCE, serverInfo
 
Constructor Summary
AJP13ConnectorGBean(String name, Map initParams, String host, int port, TomcatContainer container, ServerInfo serverInfo)
           
 
Method Summary
 String getAddress()
           
 int getBacklog()
           
 int getBufferSize()
           
 int getConnectionTimeout()
           
 String getConnectUrl()
           
 int getDefaultPort()
           
 String getExecutor()
           
static GBeanInfo getGBeanInfo()
           
 String getGeronimoProtocol()
           
 String getHost()
          Gets the hostname/IP that this connector listens on.
 int getKeepAliveTimeout()
           
 InetSocketAddress getListenAddress()
          Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup.
 int getMaxSpareThreads()
           
 int getMaxThreads()
           
 int getMinSpareThreads()
           
 int getPort()
          Gets the network port that this connector listens on.
 Stats getStats()
          Gets the statistics collected for this class.
 boolean getTcpNoDelay()
           
 boolean getTomcatAuthentication()
           
 boolean isStatisticsProvider()
           
 void resetStats()
          Reset the startTime for all statistics
 void setAddress(String address)
           
 void setBacklog(int backlog)
           
 void setBufferSize(int bufferSize)
           
 void setConnectionTimeout(int connectionTimeout)
           
 void setExecutor(String executor)
           
 void setHost(String host)
          Sets the hostname/IP that this connector listens on.
 void setKeepAliveTimeout(int keepAliveTimeout)
           
 void setMaxSpareThreads(int maxSpareThreads)
           
 void setMaxThreads(int maxThreads)
           
 void setMinSpareThreads(int minSpareThreads)
           
 void setNoCompressionUserAgents(String noCompressionUserAgents)
           
 void setPort(int port)
          Sets the network port that this connector listens on.
 void setTcpNoDelay(boolean tcpNoDelay)
           
 void setTomcatAuthentication(boolean tomcatAuthentication)
           
 
Methods inherited from class org.apache.geronimo.tomcat.connector.ConnectorGBean
doFail, doStart, doStop, getAllowTrace, getEmptySessionPath, getEnableLookups, getInternalObject, getMaxPostSize, getMaxSavePostSize, getName, getProtocol, getProxyName, getProxyPort, getRedirectPort, getScheme, getSecure, getSslEnabled, getTomcatProtocol, getUriEncoding, getUseBodyEncodingForURI, getUseIPVHosts, getXpoweredBy, setAllowTrace, setEmptySessionPath, setEnableLookups, setMaxPostSize, setMaxSavePostSize, setProxyName, setProxyPort, setRedirectPort, setScheme, setSecure, setSslEnabled, setUriEncoding, setUseBodyEncodingForURI, setUseIPVHosts, setXpoweredBy, validateProtocol
 
Methods inherited from class org.apache.geronimo.tomcat.BaseGBean
setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectHost

protected String connectHost

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

AJP13ConnectorGBean

public AJP13ConnectorGBean(String name,
                           Map initParams,
                           String host,
                           int port,
                           TomcatContainer container,
                           ServerInfo serverInfo)
                    throws Exception
Throws:
Exception
Method Detail

getGeronimoProtocol

public String getGeronimoProtocol()
Specified by:
getGeronimoProtocol in class ConnectorGBean

getConnectUrl

public String getConnectUrl()
Specified by:
getConnectUrl in interface TomcatWebConnector

getDefaultPort

public int getDefaultPort()
Specified by:
getDefaultPort in class ConnectorGBean

getListenAddress

public InetSocketAddress getListenAddress()
Description copied from interface: NetworkConnector
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. However, this can be read-only since the host and port are set separately using setHost and setPort.

Specified by:
getListenAddress in interface NetworkConnector

getAddress

public String getAddress()
Specified by:
getAddress in interface Ajp13Protocol

getBacklog

public int getBacklog()
Specified by:
getBacklog in interface Ajp13Protocol

getBufferSize

public int getBufferSize()
Specified by:
getBufferSize in interface Ajp13Protocol

getConnectionTimeout

public int getConnectionTimeout()
Specified by:
getConnectionTimeout in interface Ajp13Protocol

getExecutor

public String getExecutor()
Specified by:
getExecutor in interface Ajp13Protocol

getHost

public String getHost()
Description copied from interface: NetworkConnector
Gets the hostname/IP that this connector listens on.

Specified by:
getHost in interface NetworkConnector
Specified by:
getHost in interface Ajp13Protocol

getKeepAliveTimeout

public int getKeepAliveTimeout()
Specified by:
getKeepAliveTimeout in interface Ajp13Protocol

getMaxThreads

public int getMaxThreads()
Specified by:
getMaxThreads in interface Ajp13Protocol

getMaxSpareThreads

public int getMaxSpareThreads()
Specified by:
getMaxSpareThreads in interface Ajp13Protocol

getMinSpareThreads

public int getMinSpareThreads()
Specified by:
getMinSpareThreads in interface Ajp13Protocol

getPort

public int getPort()
Description copied from interface: NetworkConnector
Gets the network port that this connector listens on.

Specified by:
getPort in interface NetworkConnector
Specified by:
getPort in interface Ajp13Protocol

getTcpNoDelay

public boolean getTcpNoDelay()
Specified by:
getTcpNoDelay in interface Ajp13Protocol

getTomcatAuthentication

public boolean getTomcatAuthentication()
Specified by:
getTomcatAuthentication in interface Ajp13Protocol

setAddress

public void setAddress(String address)
Specified by:
setAddress in interface Ajp13Protocol

setBacklog

public void setBacklog(int backlog)
Specified by:
setBacklog in interface Ajp13Protocol

setBufferSize

public void setBufferSize(int bufferSize)
Specified by:
setBufferSize in interface Ajp13Protocol

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Specified by:
setConnectionTimeout in interface Ajp13Protocol

setExecutor

public void setExecutor(String executor)
Specified by:
setExecutor in interface Ajp13Protocol

setHost

public void setHost(String host)
Description copied from interface: NetworkConnector
Sets the hostname/IP that this connector listens on. This is typically most useful for machines with multiple network cards, but can be used to limit a connector to only listen for connections from the local machine (127.0.0.1). To listen on all available network interfaces, specify an address of 0.0.0.0.

Specified by:
setHost in interface NetworkConnector
Specified by:
setHost in interface Ajp13Protocol

setKeepAliveTimeout

public void setKeepAliveTimeout(int keepAliveTimeout)
Specified by:
setKeepAliveTimeout in interface Ajp13Protocol

setMaxThreads

public void setMaxThreads(int maxThreads)
Specified by:
setMaxThreads in interface Ajp13Protocol

setMaxSpareThreads

public void setMaxSpareThreads(int maxSpareThreads)
Specified by:
setMaxSpareThreads in interface Ajp13Protocol

setMinSpareThreads

public void setMinSpareThreads(int minSpareThreads)
Specified by:
setMinSpareThreads in interface Ajp13Protocol

setNoCompressionUserAgents

public void setNoCompressionUserAgents(String noCompressionUserAgents)

setPort

public void setPort(int port)
Description copied from interface: NetworkConnector
Sets the network port that this connector listens on.

Specified by:
setPort in interface NetworkConnector
Specified by:
setPort in interface Ajp13Protocol

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)
Specified by:
setTcpNoDelay in interface Ajp13Protocol

setTomcatAuthentication

public void setTomcatAuthentication(boolean tomcatAuthentication)
Specified by:
setTomcatAuthentication in interface Ajp13Protocol

isStatisticsProvider

public boolean isStatisticsProvider()

getStats

public Stats getStats()
Description copied from interface: StatisticsProvider
Gets the statistics collected for this class. The first call to this method initializes the startTime for all statistics.

Specified by:
getStats in interface StatisticsProvider
Specified by:
getStats in class ConnectorGBean
Returns:
gets collected for this class

resetStats

public void resetStats()
Description copied from interface: StatisticsProvider
Reset the startTime for all statistics

Specified by:
resetStats in interface StatisticsProvider
Specified by:
resetStats in class ConnectorGBean

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.