@PublicApi
public interface BlockLocationPolicy
Interface for determining the Alluxio worker location to serve a block write or UFS block read.
FileInStream uses this to determine where to read a UFS block.
A policy must have an empty constructor to be used as default policy.
| Modifier and Type | Interface and Description |
|---|---|
static class |
BlockLocationPolicy.Factory
The factory for the
BlockLocationPolicy. |
| Modifier and Type | Method and Description |
|---|---|
alluxio.wire.WorkerNetAddress |
getWorker(GetWorkerOptions options)
Gets the worker's network address for serving operations requested for the block.
|
@Nullable alluxio.wire.WorkerNetAddress getWorker(GetWorkerOptions options)
options - the options to get a block worker network address for a blockCopyright © 2024. All Rights Reserved.