@ThreadSafe public interface BlockMasterClient extends Client
Modifier and Type | Interface and Description |
---|---|
static class |
BlockMasterClient.Factory
Factory for
BlockMasterClient . |
Modifier and Type | Method and Description |
---|---|
void |
decommissionWorker(DecommissionWorkerPOptions options)
Decommission a worker.
|
BlockInfo |
getBlockInfo(long blockId)
Returns the
BlockInfo for a block id. |
BlockMasterInfo |
getBlockMasterInfo(Set<BlockMasterInfo.BlockMasterInfoField> fields) |
long |
getCapacityBytes()
Gets the total Alluxio capacity in bytes, on all the tiers of all the workers.
|
List<WorkerInfo> |
getLostWorkerInfoList()
Gets the worker information of lost workers.
|
long |
getUsedBytes()
Gets the total amount of used space in bytes, on all the tiers of all the workers.
|
List<WorkerInfo> |
getWorkerInfoList()
Gets the worker information of live workers(support older version Alluxio server).
|
List<WorkerLostStorageInfo> |
getWorkerLostStorage() |
List<WorkerInfo> |
getWorkerReport(GetWorkerReportOptions options)
Gets the worker information of selected workers and selected fields for report CLI.
|
void |
removeDisabledWorker(RemoveDisabledWorkerPOptions options)
Revert disabling a worker, enabling it to register to the cluster.
|
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnected
List<WorkerInfo> getWorkerInfoList() throws IOException
IOException
List<WorkerInfo> getLostWorkerInfoList() throws IOException
IOException
void removeDisabledWorker(RemoveDisabledWorkerPOptions options) throws IOException
options
- contains the info used to find the target worker(s)IOException
List<WorkerInfo> getWorkerReport(GetWorkerReportOptions options) throws IOException
options
- the client defined worker and field rangesIOException
List<WorkerLostStorageInfo> getWorkerLostStorage() throws IOException
IOException
BlockInfo getBlockInfo(long blockId) throws IOException
BlockInfo
for a block id.blockId
- the block id to get the BlockInfo forBlockInfo
IOException
BlockMasterInfo getBlockMasterInfo(Set<BlockMasterInfo.BlockMasterInfoField> fields) throws IOException
fields
- optional list of fields to query; if null all fields will be queriedBlockMasterInfo
block master informationIOException
long getCapacityBytes() throws IOException
IOException
long getUsedBytes() throws IOException
IOException
void decommissionWorker(DecommissionWorkerPOptions options) throws IOException
options
- method optionsAlluxioStatusException
- if something goes wrongIOException
Copyright © 2023. All Rights Reserved.