radtools.services.haproxy
Class HAProxyLinux.HAProxyServer

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

public static final class HAProxyLinux.HAProxyServer
extends Object

Abstraction of an application server for HAProxy. These objects can be added to a HAProxyLinux.HAProxyPool.servers map to direct HAProxy to route traffic to this server.

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

Version:
$Revision: 1.10 $
Author:
Greg Gibeling

Field Summary
protected  int checkPort
          The TCP port that HAProxy should use to check for server liveness.
protected  int fall
          The number of times HAProxy must detect the this server is dead before it stops routing traffic to this server.
protected  HostPort hostport
          The host and port on which the application server listens.
protected  int interval
          The interval in milliseconds at which HAProxy should check the checkPort for server liveness.
protected  int rise
          The number of times HAProxy must detect the this server is live before it routes traffic to this server.
 
Constructor Summary
HAProxyLinux.HAProxyServer(HostPort _hostport, int _checkPort, int _interval, int _rise, int _fall)
          TODO: Javadoc
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostport

protected final HostPort hostport
The host and port on which the application server listens.


checkPort

protected final int checkPort
The TCP port that HAProxy should use to check for server liveness.


interval

protected final int interval
The interval in milliseconds at which HAProxy should check the checkPort for server liveness. TODO: Use Duration


rise

protected final int rise
The number of times HAProxy must detect the this server is live before it routes traffic to this server.


fall

protected final int fall
The number of times HAProxy must detect the this server is dead before it stops routing traffic to this server.

Constructor Detail

HAProxyLinux.HAProxyServer

public HAProxyLinux.HAProxyServer(HostPort _hostport,
                                  int _checkPort,
                                  int _interval,
                                  int _rise,
                                  int _fall)
TODO: Javadoc

Parameters:
_hostport -
_checkPort -
_interval -
_rise -
_fall -