@NotThreadSafe public final class RoundRobinPolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory
Constructor and Description |
---|
RoundRobinPolicy(AlluxioConfiguration ignoredConf)
Constructs a new
RoundRobinPolicy . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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() |
String |
toString() |
public RoundRobinPolicy(AlluxioConfiguration ignoredConf)
RoundRobinPolicy
.ignoredConf
- unused, but needed for instantiation in BlockLocationPolicy.Factory
public Optional<WorkerNetAddress> getWorker(GetWorkerOptions options)
getWorker
in interface BlockLocationPolicy
options
- optionsCopyright © 2023. All Rights Reserved.