|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.loadbalancer.PingConstant
public class PingConstant
A utility Ping Implementation that returns whatever its been set to return (alive or dead)
Constructor Summary | |
---|---|
PingConstant()
|
Method Summary | |
---|---|
boolean |
getConstant()
|
boolean |
isAlive(Server server)
Checks whether the given Server is "alive" i.e. |
void |
setConstant(boolean constant)
|
void |
setConstant(java.lang.String constantStr)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingConstant()
Method Detail |
---|
public void setConstant(java.lang.String constantStr)
public void setConstant(boolean constant)
public boolean getConstant()
public boolean isAlive(Server server)
IPing
Server
is "alive" i.e. should be
considered a candidate while loadbalancing
isAlive
in interface IPing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |