@NotThreadSafe public final class ClientIOWritePolicy extends java.lang.Object implements BlockLocationPolicy
BlockLocationPolicy.Factory| Constructor and Description |
|---|
ClientIOWritePolicy(AlluxioConfiguration ignoredConf)
Constructs a new
ClientIOWritePolicy. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<WorkerNetAddress> |
getWorker(GetWorkerOptions options) |
int |
hashCode() |
static void |
setMaxWorkers(int maxWorkers)
Updates the global state to reflect the max number of workers to write to.
|
java.lang.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 java.util.Optional<WorkerNetAddress> getWorker(GetWorkerOptions options)
getWorker in interface BlockLocationPolicyoptions - optionspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2023. All Rights Reserved.