radtools.services.haproxy
Class HAProxyLinux.HAProxyPool

java.lang.Object
  extended by radtools.services.haproxy.HAProxyLinux.HAProxyPool
Enclosing class:
HAProxyLinux

public static final class HAProxyLinux.HAProxyPool
extends Object

Abstraction of an application pool as used by HAProxy. This class includes all of the application pool level configuration settings.

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize
TODO: equals, hashCode, toString

Version:
$Revision: 1.10 $
Author:
Greg Gibeling

Field Summary
protected  HostPort hostport
          The host and port on which HAProxy should listen for connections to this HAProxy pool.
 rcf.core.util.map.HashSetMap<HAProxyLinux.HAProxyServer,String> servers
          A map from the name of servers in this application proxy pool to the HAProxyLinux.HAProxyServer objects which contain the server specific configuration information.
 
Constructor Summary
HAProxyLinux.HAProxyPool(HostPort _hostport)
          Create a new server pool for which HAProxy will listen on the specified host and port.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servers

public final rcf.core.util.map.HashSetMap<HAProxyLinux.HAProxyServer,String> servers
A map from the name of servers in this application proxy pool to the HAProxyLinux.HAProxyServer objects which contain the server specific configuration information. While this field is final the contents of this map can still be modified to add, or remove servers.


hostport

protected final HostPort hostport
The host and port on which HAProxy should listen for connections to this HAProxy pool.

Constructor Detail

HAProxyLinux.HAProxyPool

public HAProxyLinux.HAProxyPool(HostPort _hostport)
Create a new server pool for which HAProxy will listen on the specified host and port. Once this object is constructed, servers can be added by using mutator methods on the servers field.

Parameters:
_hostport - The host and port on which HAProxy should listen.