com.netflix.loadbalancer
Class AbstractLoadBalancerPing

java.lang.Object
  extended by com.netflix.loadbalancer.AbstractLoadBalancerPing
All Implemented Interfaces:
IClientConfigAware, IPing
Direct Known Subclasses:
DummyPing

public abstract class AbstractLoadBalancerPing
extends java.lang.Object
implements IPing, IClientConfigAware

Class that provides the basic implementation of detmerining the "liveness" or suitability of a Server (a node)


Constructor Summary
AbstractLoadBalancerPing()
           
 
Method Summary
 AbstractLoadBalancer getLoadBalancer()
           
 boolean isAlive(Server server)
          Checks whether the given Server is "alive" i.e.
 void setLoadBalancer(AbstractLoadBalancer lb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.netflix.client.IClientConfigAware
initWithNiwsConfig
 

Constructor Detail

AbstractLoadBalancerPing

public AbstractLoadBalancerPing()
Method Detail

isAlive

public boolean isAlive(Server server)
Description copied from interface: IPing
Checks whether the given Server is "alive" i.e. should be considered a candidate while loadbalancing

Specified by:
isAlive in interface IPing
Returns:

setLoadBalancer

public void setLoadBalancer(AbstractLoadBalancer lb)

getLoadBalancer

public AbstractLoadBalancer getLoadBalancer()