@ThreadSafe public final class MostAvailableFirstPolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory
Constructor and Description |
---|
MostAvailableFirstPolicy(AlluxioConfiguration ignoredConf)
Constructs a new
MostAvailableFirstPolicy
needed for instantiation in BlockLocationPolicy.Factory . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<WorkerNetAddress> |
getWorker(GetWorkerOptions options)
The policy returns null if no worker is qualified.
|
int |
hashCode() |
String |
toString() |
public MostAvailableFirstPolicy(AlluxioConfiguration ignoredConf)
MostAvailableFirstPolicy
needed for instantiation in BlockLocationPolicy.Factory
.ignoredConf
- is unusedpublic Optional<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.