com.netflix.loadbalancer
Class ZoneAffinityPredicate

java.lang.Object
  extended by com.netflix.loadbalancer.AbstractServerPredicate
      extended by com.netflix.loadbalancer.ZoneAffinityPredicate
All Implemented Interfaces:
com.google.common.base.Predicate<PredicateKey>

public class ZoneAffinityPredicate
extends AbstractServerPredicate

A predicate the filters out servers that are not in the same zone as the client's current zone. The current zone is determined from the call

ConfigurationManager.getDeploymentContext().getValue(ContextKey.zone);
 


Field Summary
 
Fields inherited from class com.netflix.loadbalancer.AbstractServerPredicate
rule
 
Constructor Summary
ZoneAffinityPredicate()
           
 
Method Summary
 boolean apply(PredicateKey input)
           
 
Methods inherited from class com.netflix.loadbalancer.AbstractServerPredicate
alwaysTrue, chooseRandomlyAfterFiltering, chooseRandomlyAfterFiltering, chooseRoundRobinAfterFiltering, chooseRoundRobinAfterFiltering, getEligibleServers, getEligibleServers, getLBStats, getServerOnlyPredicate, ofKeyPredicate, ofServerPredicate, setLoadBalancerStats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

ZoneAffinityPredicate

public ZoneAffinityPredicate()
Method Detail

apply

public boolean apply(PredicateKey input)