|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.loadbalancer.AbstractServerPredicate
com.netflix.loadbalancer.ZoneAffinityPredicate
public class ZoneAffinityPredicate
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 |
|---|
public ZoneAffinityPredicate()
| Method Detail |
|---|
public boolean apply(PredicateKey input)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||