com.caucho.servlets
Class TcpPool

java.lang.Object
  extended by com.caucho.servlets.TcpPool

public class TcpPool
extends java.lang.Object

TCP connection pool for the HTTP proxy


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
TcpPool()
           
 
Method Summary
 void addAddress(java.lang.String address)
          Adds an address
 void addHost(java.lang.String host)
          Adds a host
 int getServerCount()
           
 void init()
          Initialize the servlet with the server's sruns.
 com.caucho.servlets.TcpPool.Server nextServer()
          Handle the request.
 void setFailRecoverTime(Period period)
          Sets the fail recover time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

TcpPool

public TcpPool()
Method Detail

addAddress

public void addAddress(java.lang.String address)
Adds an address


addHost

public void addHost(java.lang.String host)
Adds a host


setFailRecoverTime

public void setFailRecoverTime(Period period)
Sets the fail recover time.


getServerCount

public int getServerCount()

init

public void init()
          throws ServletException
Initialize the servlet with the server's sruns.

Throws:
ServletException

nextServer

public com.caucho.servlets.TcpPool.Server nextServer()
Handle the request.