@ThreadSafe public final class RetryHandlingBlockMasterClient extends alluxio.AbstractMasterClient implements BlockMasterClient
alluxio.AbstractClient.RpcCallable<V>BlockMasterClient.Factory| Constructor and Description |
|---|
RetryHandlingBlockMasterClient(alluxio.master.MasterClientContext conf)
Creates a new block master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
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.
|
protected alluxio.grpc.ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
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.
|
afterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPCclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic RetryHandlingBlockMasterClient(alluxio.master.MasterClientContext conf)
conf - master client configurationprotected alluxio.grpc.ServiceType getRemoteServiceType()
getRemoteServiceType in class alluxio.AbstractClientprotected String getServiceName()
getServiceName in class alluxio.AbstractClientprotected long getServiceVersion()
getServiceVersion in class alluxio.AbstractClientprotected void afterConnect()
afterConnect in class alluxio.AbstractClientpublic List<alluxio.wire.WorkerInfo> getWorkerInfoList() throws IOException
BlockMasterClientgetWorkerInfoList in interface BlockMasterClientIOExceptionpublic List<alluxio.wire.WorkerInfo> getWorkerReport(GetWorkerReportOptions options) throws IOException
BlockMasterClientgetWorkerReport in interface BlockMasterClientoptions - the client defined worker and field rangesIOExceptionpublic List<alluxio.grpc.WorkerLostStorageInfo> getWorkerLostStorage() throws IOException
getWorkerLostStorage in interface BlockMasterClientIOExceptionpublic alluxio.wire.BlockInfo getBlockInfo(long blockId)
throws IOException
BlockInfo for a block id.getBlockInfo in interface BlockMasterClientblockId - the block id to get the BlockInfo forBlockInfoIOExceptionpublic alluxio.wire.BlockMasterInfo getBlockMasterInfo(Set<alluxio.wire.BlockMasterInfo.BlockMasterInfoField> fields) throws IOException
getBlockMasterInfo in interface BlockMasterClientfields - optional list of fields to query; if null all fields will be queriedBlockMasterInfo block master informationIOExceptionpublic long getCapacityBytes()
throws IOException
getCapacityBytes in interface BlockMasterClientIOExceptionpublic long getUsedBytes()
throws IOException
getUsedBytes in interface BlockMasterClientIOExceptionCopyright © 2024. All Rights Reserved.