@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(java.util.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.
|
java.util.List<WorkerInfo> |
getWorkerInfoList()
Gets the worker information of live workers(support older version Alluxio server).
|
java.util.List<WorkerLostStorageInfo> |
getWorkerLostStorage() |
java.util.List<WorkerInfo> |
getWorkerReport(GetWorkerReportOptions options)
Gets the worker information of selected workers and selected fields for report CLI.
|
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnectedjava.util.List<WorkerInfo> getWorkerInfoList() throws java.io.IOException
java.io.IOExceptionjava.util.List<WorkerInfo> getWorkerReport(GetWorkerReportOptions options) throws java.io.IOException
options - the client defined worker and field rangesjava.io.IOExceptionjava.util.List<WorkerLostStorageInfo> getWorkerLostStorage() throws java.io.IOException
java.io.IOExceptionBlockInfo getBlockInfo(long blockId) throws java.io.IOException
BlockInfo for a block id.blockId - the block id to get the BlockInfo forBlockInfojava.io.IOExceptionBlockMasterInfo getBlockMasterInfo(java.util.Set<BlockMasterInfo.BlockMasterInfoField> fields) throws java.io.IOException
fields - optional list of fields to query; if null all fields will be queriedBlockMasterInfo block master informationjava.io.IOExceptionlong getCapacityBytes()
throws java.io.IOException
java.io.IOExceptionlong getUsedBytes()
throws java.io.IOException
java.io.IOExceptionCopyright © 2022. All Rights Reserved.