Package org.jboss.modcluster.container
Interface Connector
- All Known Implementing Classes:
TomcatConnector
public interface Connector
SPI for a connector, defined as a communication end-point for a client or proxy.
- Author:
- Paul Ferraro
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the address on which this connector operates.int
long
long
int
int
getPort()
Returns the port on which this connector operates.long
getType()
Indicates the type of this connector.boolean
Returns whether this connector available for processing requests.boolean
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.
-
Method Details
-
isReverse
boolean isReverse()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.- Returns:
- true, if the endpoint uses a reverse connection, false otherwise
-
getType
Connector.Type getType()Indicates the type of this connector.- Returns:
- a connector type
-
getAddress
InetAddress getAddress()Returns the address on which this connector operates.- Returns:
- an address
-
setAddress
Sets the address on which this connector operates. Used to set an explicit connector address if undefined or defined as any address.- Parameters:
address
- a network interface address
-
getPort
int getPort()Returns 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.- Returns:
- a port number on which this connector operates
-
isAvailable
boolean isAvailable()Returns whether this connector available for processing requests.- Returns:
- whether this connector available for processing requests
-
getMaxThreads
int getMaxThreads() -
getBusyThreads
int getBusyThreads() -
getBytesSent
long getBytesSent() -
getBytesReceived
long getBytesReceived() -
getRequestCount
long getRequestCount()
-