public static interface BlockMasterWorkerService.Iface extends AlluxioService.Iface
Modifier and Type | Method and Description |
---|---|
BlockHeartbeatTResponse |
blockHeartbeat(long workerId,
Map<String,Long> usedBytesOnTiers,
List<Long> removedBlockIds,
Map<String,List<Long>> addedBlocksOnTiers,
BlockHeartbeatTOptions options)
Periodic block worker heartbeat returns an optional command for the block worker to execute.
|
CommitBlockTResponse |
commitBlock(long workerId,
long usedBytesOnTier,
String tierAlias,
long blockId,
long length,
CommitBlockTOptions options)
Marks the given block as committed.
|
GetWorkerIdTResponse |
getWorkerId(WorkerNetAddress workerNetAddress,
GetWorkerIdTOptions options)
Returns a worker id for the given network address.
|
RegisterWorkerTResponse |
registerWorker(long workerId,
List<String> storageTiers,
Map<String,Long> totalBytesOnTiers,
Map<String,Long> usedBytesOnTiers,
Map<String,List<Long>> currentBlocksOnTiers,
RegisterWorkerTOptions options)
Registers a worker.
|
getServiceVersion
BlockHeartbeatTResponse blockHeartbeat(long workerId, Map<String,Long> usedBytesOnTiers, List<Long> removedBlockIds, Map<String,List<Long>> addedBlocksOnTiers, BlockHeartbeatTOptions options) throws AlluxioTException, org.apache.thrift.TException
workerId
- the id of the workerusedBytesOnTiers
- the map of space used in bytes on all tiersremovedBlockIds
- the list of removed block idsaddedBlocksOnTiers
- the map of added blocks on all tiersoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
CommitBlockTResponse commitBlock(long workerId, long usedBytesOnTier, String tierAlias, long blockId, long length, CommitBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
workerId
- the id of the workerusedBytesOnTier
- the space used in bytes on the target tiertierAlias
- the alias of the target tierblockId
- the id of the block being committedlength
- the length of the block being committedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
GetWorkerIdTResponse getWorkerId(WorkerNetAddress workerNetAddress, GetWorkerIdTOptions options) throws AlluxioTException, org.apache.thrift.TException
workerNetAddress
- the worker network addressoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
RegisterWorkerTResponse registerWorker(long workerId, List<String> storageTiers, Map<String,Long> totalBytesOnTiers, Map<String,Long> usedBytesOnTiers, Map<String,List<Long>> currentBlocksOnTiers, RegisterWorkerTOptions options) throws AlluxioTException, org.apache.thrift.TException
workerId
- the id of the workerstorageTiers
- the list of storage tierstotalBytesOnTiers
- the map of total bytes on each tierusedBytesOnTiers
- the map of used bytes on each tiercurrentBlocksOnTiers
- the map of list of blocks on each tieroptions
- the method optionsAlluxioTException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.