com.netflix.loadbalancer
Class DummyPing

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

public class DummyPing
extends AbstractLoadBalancerPing

Default simple implementation that marks the liveness of a Server


Constructor Summary
DummyPing()
           
 
Method Summary
 void initWithNiwsConfig(IClientConfig clientConfig)
          Concrete implementation should implement this method so that the configuration set via IClientConfig (which in turn were set via Archaius properties) will be taken into consideration
 boolean isAlive(Server server)
          Checks whether the given Server is "alive" i.e.
 
Methods inherited from class com.netflix.loadbalancer.AbstractLoadBalancerPing
getLoadBalancer, setLoadBalancer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyPing

public DummyPing()
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
Overrides:
isAlive in class AbstractLoadBalancerPing
Returns:

initWithNiwsConfig

public void initWithNiwsConfig(IClientConfig clientConfig)
Description copied from interface: IClientConfigAware
Concrete implementation should implement this method so that the configuration set via IClientConfig (which in turn were set via Archaius properties) will be taken into consideration