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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionReturns the address on which this connector operates.intlonglongintintgetPort()Returns the port on which this connector operates.longgetType()Indicates the type of this connector.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.
- 
Method Details- 
isReverseboolean 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
 
- 
getTypeConnector.Type getType()Indicates the type of this connector.- Returns:
- a connector type
 
- 
getAddressInetAddress getAddress()Returns the address on which this connector operates.- Returns:
- an address
 
- 
setAddressSets 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
 
- 
getPortint 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
 
- 
isAvailableboolean isAvailable()Returns whether this connector available for processing requests.- Returns:
- whether this connector available for processing requests
 
- 
getMaxThreadsint getMaxThreads()
- 
getBusyThreadsint getBusyThreads()
- 
getBytesSentlong getBytesSent()
- 
getBytesReceivedlong getBytesReceived()
- 
getRequestCountlong getRequestCount()
 
-