@NotThreadSafe public final class RoundRobinPolicy extends java.lang.Object implements BlockLocationPolicy
BlockLocationPolicy.Factory| Constructor and Description |
|---|
RoundRobinPolicy(AlluxioConfiguration ignoredConf)
Constructs a new
RoundRobinPolicy. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<WorkerNetAddress> |
getWorker(GetWorkerOptions options)
The policy uses the first fetch of worker info list as the base, and visits each of them in a
round-robin manner in the subsequent calls.
|
int |
hashCode() |
java.lang.String |
toString() |
public RoundRobinPolicy(AlluxioConfiguration ignoredConf)
RoundRobinPolicy.ignoredConf - unused, but needed for instantiation in BlockLocationPolicy.Factorypublic java.util.Optional<WorkerNetAddress> getWorker(GetWorkerOptions options)
getWorker in interface BlockLocationPolicyoptions - optionspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All Rights Reserved.