@ThreadSafe public final class MostAvailableFirstPolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory
Constructor and Description |
---|
MostAvailableFirstPolicy(AlluxioConfiguration conf)
Constructs a new
MostAvailableFirstPolicy . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
WorkerNetAddress |
getWorker(GetWorkerOptions options)
The policy returns null if no worker is qualified.
|
int |
hashCode() |
String |
toString() |
public MostAvailableFirstPolicy(AlluxioConfiguration conf)
MostAvailableFirstPolicy
.conf
- Alluxio configurationpublic WorkerNetAddress getWorker(GetWorkerOptions options)
getWorker
in interface BlockLocationPolicy
options
- the options to get a block worker network address for a blockCopyright © 2023. All Rights Reserved.