public final class BlockMasterClient extends MasterClientBase
mUseZookeeper
mAddress, mClosed, mConnected, mMode, mProtocol, mTachyonConf, RPC_MAX_NUM_RETRY
Constructor and Description |
---|
BlockMasterClient(InetSocketAddress masterAddress,
TachyonConf tachyonConf)
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.
|
long |
getCapacityBytes()
Gets the total Tachyon capacity in bytes, on all the tiers of all the workers.
|
protected String |
getServiceName() |
long |
getUsedBytes()
Gets the total amount of used space in bytes, on all the tiers of all the workers.
|
List<WorkerInfo> |
getWorkerInfoList()
Gets the info of a list of workers.
|
getAddress
afterDisconnect, close, connect, disconnect, isConnected, resetConnection
public BlockMasterClient(InetSocketAddress masterAddress, TachyonConf tachyonConf)
masterAddress
- the master addresstachyonConf
- the Tachyon configurationprotected String getServiceName()
getServiceName
in class ClientBase
protected void afterConnect()
afterConnect
in class ClientBase
public List<WorkerInfo> getWorkerInfoList() throws IOException
IOException
- if an I/O error occurspublic BlockInfo getBlockInfo(long blockId) throws IOException
blockId
- the block id to get the BlockInfo forIOException
- if an I/O error occurspublic long getCapacityBytes() throws IOException
IOException
- if an I/O error occurspublic long getUsedBytes() throws IOException
IOException
- if an I/O error occursCopyright © 2015. All Rights Reserved.