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.Connector
connector
protected String
externalAddress
protected Integer
externalPort
-
Constructor Summary
Constructors Constructor Description TomcatConnector(org.apache.catalina.connector.Connector connector)
Constructs a newTomcatConnector
wrapping the specified catalina connector.TomcatConnector(org.apache.catalina.connector.Connector connector, String externalAddress, Integer externalPort)
Constructs a newTomcatConnector
wrapping the specified catalina connector.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
InetAddress
getAddress()
Returns the address on which this connector operates.int
getBusyThreads()
long
getBytesReceived()
long
getBytesSent()
protected Object
getConnectionHandler()
int
getMaxThreads()
int
getPort()
Returns the port on which this connector operates.protected Object
getProtocolHandlerProperty(String property)
long
getRequestCount()
protected org.apache.coyote.RequestGroupInfo
getRequestGroupInfo()
protected org.apache.coyote.RequestGroupInfo
getRequestGroupInfo(Object connectionHandler)
Connector.Type
getType()
Indicates the type of this connector.int
hashCode()
static boolean
isAJP(org.apache.catalina.connector.Connector connector)
Indicates whether or not the specified connector use the AJP protocol.boolean
isAvailable()
Returns whether this connector available for processing requests.boolean
isReverse()
Indicates whether the endpoint of this connector uses a reverse connection to httpd.void
setAddress(InetAddress address)
Sets the address on which this connector operates.String
toString()
-
-
-
Constructor Detail
-
TomcatConnector
public TomcatConnector(org.apache.catalina.connector.Connector connector)
Constructs a newTomcatConnector
wrapping the specified catalina connector.- Parameters:
connector
- the catalina connector
-
TomcatConnector
public TomcatConnector(org.apache.catalina.connector.Connector connector, String externalAddress, Integer externalPort)
Constructs a newTomcatConnector
wrapping the specified catalina connector.- Parameters:
connector
- the catalina connector
-
-
Method Detail
-
getAddress
public InetAddress getAddress()
Description copied from interface:Connector
Returns the address on which this connector operates.- Specified by:
getAddress
in interfaceConnector
- Returns:
- an address
-
setAddress
public void setAddress(InetAddress address)
Description copied from interface:Connector
Sets the address on which this connector operates. Used to set an explicit connector address if undefined or defined as any address.- Specified by:
setAddress
in interfaceConnector
- Parameters:
address
- a network interface address
-
getPort
public int getPort()
Description copied from interface:Connector
Returns the port on which this connector operates.
-
getType
public Connector.Type getType()
Description copied from interface:Connector
Indicates the type of this connector.
-
isReverse
public boolean isReverse()
Description copied from interface:Connector
Indicates 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.
-
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:Connector
Returns whether this connector available for processing requests.- Specified by:
isAvailable
in interfaceConnector
- Returns:
- whether this connector available for processing requests
-
getMaxThreads
public int getMaxThreads()
- Specified by:
getMaxThreads
in interfaceConnector
-
getBusyThreads
public int getBusyThreads()
- Specified by:
getBusyThreads
in interfaceConnector
-
getBytesSent
public long getBytesSent()
- Specified by:
getBytesSent
in interfaceConnector
-
getBytesReceived
public long getBytesReceived()
- Specified by:
getBytesReceived
in interfaceConnector
-
getRequestCount
public long getRequestCount()
- Specified by:
getRequestCount
in interfaceConnector
-
getConnectionHandler
protected Object getConnectionHandler()
-
getRequestGroupInfo
protected org.apache.coyote.RequestGroupInfo getRequestGroupInfo()
-
getRequestGroupInfo
protected org.apache.coyote.RequestGroupInfo getRequestGroupInfo(Object connectionHandler)
-
-