@ThreadSafe public final class SpecificHostPolicy extends Object implements BlockLocationPolicy
BlockLocationPolicy.Factory| Constructor and Description |
|---|
SpecificHostPolicy(alluxio.conf.AlluxioConfiguration conf)
Constructs a new
SpecificHostPolicy. |
SpecificHostPolicy(String hostname)
Constructs the policy with the hostname.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
alluxio.wire.WorkerNetAddress |
getWorker(GetWorkerOptions options)
Gets the worker's network address for serving operations requested for the block.
|
int |
hashCode() |
String |
toString() |
public SpecificHostPolicy(alluxio.conf.AlluxioConfiguration conf)
SpecificHostPolicy.conf - Alluxio configurationpublic SpecificHostPolicy(String hostname)
hostname - the name of the hostpublic alluxio.wire.WorkerNetAddress getWorker(GetWorkerOptions options)
BlockLocationPolicygetWorker in interface BlockLocationPolicyoptions - the options to get a block worker network address for a blockCopyright © 2024. All Rights Reserved.