Class TomcatConnector
- java.lang.Object
-
- org.jboss.modcluster.container.tomcat.TomcatConnector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.modcluster.container.Connector
Connector.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.catalina.connector.Connectorconnectorprotected StringexternalAddressprotected IntegerexternalPort
-
Constructor Summary
Constructors Constructor Description TomcatConnector(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)InetAddressgetAddress()intgetBusyThreads()longgetBytesReceived()longgetBytesSent()protected ObjectgetConnectionHandler()intgetMaxThreads()intgetPort()protected ObjectgetProtocolHandlerProperty(String property)longgetRequestCount()protected org.apache.coyote.RequestGroupInfogetRequestGroupInfo()protected org.apache.coyote.RequestGroupInfogetRequestGroupInfo(Object connectionHandler)Connector.TypegetType()inthashCode()static booleanisAJP(org.apache.catalina.connector.Connector connector)Indicates whether or not the specified connector use the AJP protocol.booleanisAvailable()booleanisReverse()voidsetAddress(InetAddress address)StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getAddress
public InetAddress getAddress()
- Specified by:
getAddressin interfaceConnector
-
setAddress
public void setAddress(InetAddress address)
- Specified by:
setAddressin interfaceConnector
-
getType
public Connector.Type getType()
-
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()
- Specified by:
isAvailablein interfaceConnector
-
getMaxThreads
public int getMaxThreads()
- Specified by:
getMaxThreadsin interfaceConnector
-
getBusyThreads
public int getBusyThreads()
- Specified by:
getBusyThreadsin interfaceConnector
-
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
protected Object getConnectionHandler()
-
getRequestGroupInfo
protected org.apache.coyote.RequestGroupInfo getRequestGroupInfo()
-
getRequestGroupInfo
protected org.apache.coyote.RequestGroupInfo getRequestGroupInfo(Object connectionHandler)
-
-