Package org.jboss.modcluster.container
Interface Connector
-
- All Known Implementing Classes:
TomcatConnector
public interface ConnectorSPI for a connector, defined as a communication end-point for a client or proxy.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConnector.TypeIndicates the type of connector.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetAddressgetAddress()Returns the address on which this connector operates.intgetBusyThreads()longgetBytesReceived()longgetBytesSent()intgetMaxThreads()intgetPort()Returns the port on which this connector operates.longgetRequestCount()Connector.TypegetType()Indicates the type of this connector.booleanisAvailable()Returns whether this connector available for processing requests.booleanisReverse()Indicates whether the endpoint of this connector uses a reverse connection to httpd.voidsetAddress(InetAddress address)Sets the address on which this connector operates.
-
-
-
Method Detail
-
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
void setAddress(InetAddress address)
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.- Returns:
- a port number
-
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()
-
-