@NotThreadSafe public final class RoundRobinPolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory
Constructor and Description |
---|
RoundRobinPolicy(AlluxioConfiguration conf)
Constructs a new
RoundRobinPolicy . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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 conf)
RoundRobinPolicy
.conf
- Alluxio configuration@Nullable public WorkerNetAddress getWorker(GetWorkerOptions options)
getWorker
in interface BlockLocationPolicy
options
- optionsCopyright © 2023. All Rights Reserved.