@ThreadSafe public interface BlockMasterClient extends alluxio.Client
| Modifier and Type | Interface and Description |
|---|---|
static class |
BlockMasterClient.Factory
Factory for
BlockMasterClient. |
| Modifier and Type | Method and Description |
|---|---|
alluxio.wire.BlockInfo |
getBlockInfo(long blockId)
Returns the
BlockInfo for a block id. |
alluxio.wire.BlockMasterInfo |
getBlockMasterInfo(Set<alluxio.wire.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<alluxio.wire.WorkerInfo> |
getWorkerInfoList()
Gets the worker information of live workers(support older version Alluxio server).
|
List<alluxio.grpc.WorkerLostStorageInfo> |
getWorkerLostStorage() |
List<alluxio.wire.WorkerInfo> |
getWorkerReport(GetWorkerReportOptions options)
Gets the worker information of selected workers and selected fields for report CLI.
|
List<alluxio.wire.WorkerInfo> getWorkerInfoList() throws IOException
IOExceptionList<alluxio.wire.WorkerInfo> getWorkerReport(GetWorkerReportOptions options) throws IOException
options - the client defined worker and field rangesIOExceptionList<alluxio.grpc.WorkerLostStorageInfo> getWorkerLostStorage() throws IOException
IOExceptionalluxio.wire.BlockInfo getBlockInfo(long blockId)
throws IOException
BlockInfo for a block id.blockId - the block id to get the BlockInfo forBlockInfoIOExceptionalluxio.wire.BlockMasterInfo getBlockMasterInfo(Set<alluxio.wire.BlockMasterInfo.BlockMasterInfoField> fields) throws IOException
fields - optional list of fields to query; if null all fields will be queriedBlockMasterInfo block master informationIOExceptionlong getCapacityBytes()
throws IOException
IOExceptionlong getUsedBytes()
throws IOException
IOExceptionCopyright © 2024. All Rights Reserved.