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