@NotThreadSafe public final class BlockMasterWorkerServiceHandler extends Object implements BlockMasterWorkerService.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.
|
GetServiceVersionTResponse |
getServiceVersion(GetServiceVersionTOptions options)
Returns the version of the master service.
|
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.
|
public GetServiceVersionTResponse getServiceVersion(GetServiceVersionTOptions options)
AlluxioService.Iface
getServiceVersion
in interface AlluxioService.Iface
options
- the method optionspublic BlockHeartbeatTResponse blockHeartbeat(long workerId, Map<String,Long> usedBytesOnTiers, List<Long> removedBlockIds, Map<String,List<Long>> addedBlocksOnTiers, BlockHeartbeatTOptions options) throws AlluxioTException
BlockMasterWorkerService.Iface
blockHeartbeat
in interface BlockMasterWorkerService.Iface
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
public CommitBlockTResponse commitBlock(long workerId, long usedBytesOnTier, String tierAlias, long blockId, long length, CommitBlockTOptions options) throws AlluxioTException
BlockMasterWorkerService.Iface
commitBlock
in interface BlockMasterWorkerService.Iface
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
public GetWorkerIdTResponse getWorkerId(WorkerNetAddress workerNetAddress, GetWorkerIdTOptions options) throws AlluxioTException
BlockMasterWorkerService.Iface
getWorkerId
in interface BlockMasterWorkerService.Iface
workerNetAddress
- the worker network addressoptions
- the method optionsAlluxioTException
public RegisterWorkerTResponse registerWorker(long workerId, List<String> storageTiers, Map<String,Long> totalBytesOnTiers, Map<String,Long> usedBytesOnTiers, Map<String,List<Long>> currentBlocksOnTiers, RegisterWorkerTOptions options) throws AlluxioTException
BlockMasterWorkerService.Iface
registerWorker
in interface BlockMasterWorkerService.Iface
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
Copyright © 2023. All Rights Reserved.