@NotThreadSafe public final class ClientIOWritePolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory
Constructor and Description |
---|
ClientIOWritePolicy(AlluxioConfiguration ignoredConf)
Constructs a new
ClientIOWritePolicy . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<WorkerNetAddress> |
getWorker(GetWorkerOptions options)
Gets the worker's network address for serving operations requested for the block.
|
int |
hashCode() |
static void |
setMaxWorkers(int maxWorkers)
Updates the global state to reflect the max number of workers to write to.
|
String |
toString() |
public ClientIOWritePolicy(AlluxioConfiguration ignoredConf)
ClientIOWritePolicy
.
needed for instantiation in BlockLocationPolicy.Factory
.ignoredConf
- is unusedpublic static void setMaxWorkers(int maxWorkers)
maxWorkers
- the max number of workers to write topublic Optional<WorkerNetAddress> getWorker(GetWorkerOptions options)
BlockLocationPolicy
getWorker
in interface BlockLocationPolicy
options
- optionsCopyright © 2023. All Rights Reserved.