@ThreadSafe public final class RetryHandlingBlockMasterClient extends AbstractMasterClient implements BlockMasterClient
AbstractClient.RpcCallable<V>BlockMasterClient.FactorymChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService| Constructor and Description |
|---|
RetryHandlingBlockMasterClient(MasterClientContext conf)
Creates a new block master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
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.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
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.
|
afterDisconnect, beforeConnect, getConfAddress, queryGrpcServerAddressbeforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPCclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnectedpublic RetryHandlingBlockMasterClient(MasterClientContext conf)
conf - master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType in class AbstractClientprotected java.lang.String getServiceName()
getServiceName in class AbstractClientprotected long getServiceVersion()
getServiceVersion in class AbstractClientprotected void afterConnect()
afterConnect in class AbstractClientpublic java.util.List<WorkerInfo> getWorkerInfoList() throws java.io.IOException
BlockMasterClientgetWorkerInfoList in interface BlockMasterClientjava.io.IOExceptionpublic java.util.List<WorkerInfo> getWorkerReport(GetWorkerReportOptions options) throws java.io.IOException
BlockMasterClientgetWorkerReport in interface BlockMasterClientoptions - the client defined worker and field rangesjava.io.IOExceptionpublic java.util.List<WorkerLostStorageInfo> getWorkerLostStorage() throws java.io.IOException
getWorkerLostStorage in interface BlockMasterClientjava.io.IOExceptionpublic BlockInfo getBlockInfo(long blockId) throws java.io.IOException
BlockMasterClientBlockInfo for a block id.getBlockInfo in interface BlockMasterClientblockId - the block id to get the BlockInfo forBlockInfojava.io.IOExceptionpublic BlockMasterInfo getBlockMasterInfo(java.util.Set<BlockMasterInfo.BlockMasterInfoField> fields) throws java.io.IOException
getBlockMasterInfo in interface BlockMasterClientfields - optional list of fields to query; if null all fields will be queriedBlockMasterInfo block master informationjava.io.IOExceptionpublic long getCapacityBytes()
throws java.io.IOException
BlockMasterClientgetCapacityBytes in interface BlockMasterClientjava.io.IOExceptionpublic long getUsedBytes()
throws java.io.IOException
BlockMasterClientgetUsedBytes in interface BlockMasterClientjava.io.IOExceptionCopyright © 2022. All Rights Reserved.