@NotThreadSafe public final class ClientIOWritePolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory
Constructor and Description |
---|
ClientIOWritePolicy(AlluxioConfiguration conf)
Constructs a new
ClientIOWritePolicy . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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 conf)
ClientIOWritePolicy
.conf
- Alluxio configurationpublic static void setMaxWorkers(int maxWorkers)
maxWorkers
- the max number of workers to write to@Nullable public WorkerNetAddress getWorker(GetWorkerOptions options)
BlockLocationPolicy
getWorker
in interface BlockLocationPolicy
options
- optionsCopyright © 2023. All Rights Reserved.