com.netflix.loadbalancer
Class WeightedResponseTimeRule

java.lang.Object
  extended by com.netflix.loadbalancer.AbstractLoadBalancerRule
      extended by com.netflix.loadbalancer.WeightedResponseTimeRule
All Implemented Interfaces:
IClientConfigAware, IRule

public class WeightedResponseTimeRule
extends AbstractLoadBalancerRule

This class essentially contains the ResponseTimeWeightedRule class defined in the loadbalancer package


Constructor Summary
WeightedResponseTimeRule()
           
 
Method Summary
 Server choose(BaseLoadBalancer lb, java.lang.Object key)
           
 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
 void setLoadBalancer(AbstractLoadBalancer lb)
           
 
Methods inherited from class com.netflix.loadbalancer.AbstractLoadBalancerRule
getLoadBalancer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedResponseTimeRule

public WeightedResponseTimeRule()
Method Detail

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


setLoadBalancer

public void setLoadBalancer(AbstractLoadBalancer lb)
Overrides:
setLoadBalancer in class AbstractLoadBalancerRule

choose

public Server choose(BaseLoadBalancer lb,
                     java.lang.Object key)
Specified by:
choose in interface IRule
Overrides:
choose in class AbstractLoadBalancerRule