|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectradtools.services.haproxy.HAProxyLinux.HAProxyServer
public static final class HAProxyLinux.HAProxyServer
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
| 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 |
|---|
protected final HostPort hostport
protected final int checkPort
protected final int interval
checkPort for server liveness.
TODO: Use Duration
protected final int rise
protected final int fall
| Constructor Detail |
|---|
public HAProxyLinux.HAProxyServer(HostPort _hostport,
int _checkPort,
int _interval,
int _rise,
int _fall)
_hostport - _checkPort - _interval - _rise - _fall -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||