mod_cluster-container-spi 1.2.6.Final

org.jboss.modcluster.container
Interface Connector


public interface Connector

SPI for a connector, defined as a communication end-point for a client or proxy.

Author:
Paul Ferraro

Nested Class Summary
static class Connector.Type
          Indicates the type of a connector.
 
Method Summary
 InetAddress getAddress()
          Returns the address on which this connector operates
 int getBusyThreads()
           
 long getBytesReceived()
           
 long getBytesSent()
           
 int getMaxThreads()
           
 int getPort()
          Returns the port on which this connector operates
 long getRequestCount()
           
 Connector.Type getType()
          Indicates the type of this connector
 boolean isAvailable()
          Is 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.
 

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 it 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()
Is this connector available for processing requests?


getMaxThreads

int getMaxThreads()

getBusyThreads

int getBusyThreads()

getBytesSent

long getBytesSent()

getBytesReceived

long getBytesReceived()

getRequestCount

long getRequestCount()

mod_cluster-container-spi 1.2.6.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.