@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 |
---|---|
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.
|
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 |
removeDecommissionedWorker(String workerName)
Remove the metadata of a decommissioned worker.
|
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnected
List<WorkerInfo> getWorkerInfoList() throws IOException
IOException
void removeDecommissionedWorker(String workerName) throws IOException
workerName
- contains a string, representing the workerNameIOException
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
Copyright © 2023. All Rights Reserved.