@ThreadSafe public final class LocalFirstAvoidEvictionPolicy extends Object implements BlockLocationPolicy
TieredIdentity
.The calculation of which worker gets selected is done for each block write.
The {@link alluxio.conf.PropertyKey.USER_FILE_WRITE_AVOID_EVICTION_POLICY_RESERVED_BYTES}
(alluxio.user.block.avoid.eviction.policy.reserved.size.bytes)
is used as buffer space on each worker when calculating available space
to store each block.
BlockLocationPolicy.Factory
Constructor and Description |
---|
LocalFirstAvoidEvictionPolicy(AlluxioConfiguration conf)
Constructs a new
LocalFirstAvoidEvictionPolicy . |
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() |
String |
toString() |
public LocalFirstAvoidEvictionPolicy(AlluxioConfiguration conf)
LocalFirstAvoidEvictionPolicy
.conf
- Alluxio configurationpublic WorkerNetAddress getWorker(GetWorkerOptions options)
BlockLocationPolicy
getWorker
in interface BlockLocationPolicy
options
- the options to get a block worker network address for a blockCopyright © 2023. All Rights Reserved.