public class CachingBlockMasterClient extends BlockMasterClient
AbstractClient.RpcCallable<V>mAddress, mChannel, mClosed, mConnected, mContext, mServiceVersion, mVersionService| Constructor and Description |
|---|
CachingBlockMasterClient(MasterClientContext conf,
java.util.List<LocationBlockIdListEntry> locationBlockIdList)
Creates a new instance and caches the converted proto.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LocationBlockIdListEntry> |
convertBlockListMapToProto(java.util.Map<BlockStoreLocation,java.util.List<java.lang.Long>> blockListOnLocation) |
afterConnect, commitBlock, commitBlockInUfs, getId, getRemoteServiceType, getServiceName, getServiceVersion, heartbeat, registergetAddress, getConfAddressafterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPCpublic CachingBlockMasterClient(MasterClientContext conf, java.util.List<LocationBlockIdListEntry> locationBlockIdList)
conf - master client configurationlocationBlockIdList - location block id listpublic java.util.List<LocationBlockIdListEntry> convertBlockListMapToProto(java.util.Map<BlockStoreLocation,java.util.List<java.lang.Long>> blockListOnLocation)
convertBlockListMapToProto in class BlockMasterClientCopyright © 2022. All Rights Reserved.