Class TomcatConnector
java.lang.Object
org.jboss.modcluster.container.tomcat.TomcatConnector
- All Implemented Interfaces:
Connector
Connector implementation that wraps a Connector.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.modcluster.container.Connector
Connector.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTomcatConnector(org.apache.catalina.connector.Connector connector) Constructs a newTomcatConnectorwrapping the specified catalina connector.TomcatConnector(org.apache.catalina.connector.Connector connector, String externalAddress, Integer externalPort) Constructs a newTomcatConnectorwrapping the specified catalina connector. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the address on which this connector operates.intlonglongprotected ObjectintintgetPort()Returns the port on which this connector operates.protected ObjectgetProtocolHandlerProperty(String property) longprotected org.apache.coyote.RequestGroupInfoprotected org.apache.coyote.RequestGroupInfogetRequestGroupInfo(Object connectionHandler) getType()Indicates the type of this connector.inthashCode()static booleanisAJP(org.apache.catalina.connector.Connector connector) Indicates whether or not the specified connector use the AJP protocol.booleanReturns whether this connector available for processing requests.booleanIndicates whether the endpoint of this connector uses a reverse connection to httpd.voidsetAddress(InetAddress address) Sets the address on which this connector operates.toString()
-
Field Details
-
connector
protected final org.apache.catalina.connector.Connector connector -
externalAddress
-
externalPort
-
-
Constructor Details
-
TomcatConnector
public TomcatConnector(org.apache.catalina.connector.Connector connector) Constructs a newTomcatConnectorwrapping the specified catalina connector.- Parameters:
connector- the catalina connector
-
TomcatConnector
public TomcatConnector(org.apache.catalina.connector.Connector connector, String externalAddress, Integer externalPort) Constructs a newTomcatConnectorwrapping the specified catalina connector.- Parameters:
connector- the catalina connector
-
-
Method Details
-
getAddress
Description copied from interface:ConnectorReturns the address on which this connector operates.- Specified by:
getAddressin interfaceConnector- Returns:
- an address
-
setAddress
Description copied from interface:ConnectorSets the address on which this connector operates. Used to set an explicit connector address if undefined or defined as any address.- Specified by:
setAddressin interfaceConnector- Parameters:
address- a network interface address
-
getPort
public int getPort()Description copied from interface:ConnectorReturns the port on which this connector operates. Note that the implementations need to account for any form of external port mapping or port offsetting that might have an effect on the configured port. -
getType
Description copied from interface:ConnectorIndicates the type of this connector. -
isReverse
public boolean isReverse()Description copied from interface:ConnectorIndicates whether the endpoint of this connector uses a reverse connection to httpd. A reverse connection uses a normal socket connection, instead of the traditional server socket. -
equals
-
hashCode
public int hashCode() -
toString
-
isAJP
public static boolean isAJP(org.apache.catalina.connector.Connector connector) Indicates whether or not the specified connector use the AJP protocol.- Parameters:
connector- a connector- Returns:
- true, if the specified connector is AJP, false otherwise
-
isAvailable
public boolean isAvailable()Description copied from interface:ConnectorReturns whether this connector available for processing requests.- Specified by:
isAvailablein interfaceConnector- Returns:
- whether this connector available for processing requests
-
getMaxThreads
public int getMaxThreads()- Specified by:
getMaxThreadsin interfaceConnector
-
getBusyThreads
public int getBusyThreads()- Specified by:
getBusyThreadsin interfaceConnector
-
getProtocolHandlerProperty
-
getBytesSent
public long getBytesSent()- Specified by:
getBytesSentin interfaceConnector
-
getBytesReceived
public long getBytesReceived()- Specified by:
getBytesReceivedin interfaceConnector
-
getRequestCount
public long getRequestCount()- Specified by:
getRequestCountin interfaceConnector
-
getConnectionHandler
-
getRequestGroupInfo
protected org.apache.coyote.RequestGroupInfo getRequestGroupInfo() -
getRequestGroupInfo
-