public static class BlockMasterWorkerService.Client extends AlluxioService.Client implements BlockMasterWorkerService.Iface
Modifier and Type | Class and Description |
---|---|
static class |
BlockMasterWorkerService.Client.Factory |
Constructor and Description |
---|
Client(org.apache.thrift.protocol.TProtocol prot) |
Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot) |
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.
|
BlockHeartbeatTResponse |
recv_blockHeartbeat() |
CommitBlockTResponse |
recv_commitBlock() |
GetWorkerIdTResponse |
recv_getWorkerId() |
RegisterWorkerTResponse |
recv_registerWorker() |
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.
|
void |
send_blockHeartbeat(long workerId,
Map<String,Long> usedBytesOnTiers,
List<Long> removedBlockIds,
Map<String,List<Long>> addedBlocksOnTiers,
BlockHeartbeatTOptions options) |
void |
send_commitBlock(long workerId,
long usedBytesOnTier,
String tierAlias,
long blockId,
long length,
CommitBlockTOptions options) |
void |
send_getWorkerId(WorkerNetAddress workerNetAddress,
GetWorkerIdTOptions options) |
void |
send_registerWorker(long workerId,
List<String> storageTiers,
Map<String,Long> totalBytesOnTiers,
Map<String,Long> usedBytesOnTiers,
Map<String,List<Long>> currentBlocksOnTiers,
RegisterWorkerTOptions options) |
getServiceVersion, recv_getServiceVersion, send_getServiceVersion
getInputProtocol, getOutputProtocol, receiveBase, sendBase, sendBaseOneway
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServiceVersion
public Client(org.apache.thrift.protocol.TProtocol prot)
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
public BlockHeartbeatTResponse blockHeartbeat(long workerId, Map<String,Long> usedBytesOnTiers, List<Long> removedBlockIds, Map<String,List<Long>> addedBlocksOnTiers, BlockHeartbeatTOptions options) throws AlluxioTException, org.apache.thrift.TException
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
org.apache.thrift.TException
public void send_blockHeartbeat(long workerId, Map<String,Long> usedBytesOnTiers, List<Long> removedBlockIds, Map<String,List<Long>> addedBlocksOnTiers, BlockHeartbeatTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public BlockHeartbeatTResponse recv_blockHeartbeat() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public CommitBlockTResponse commitBlock(long workerId, long usedBytesOnTier, String tierAlias, long blockId, long length, CommitBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
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
org.apache.thrift.TException
public void send_commitBlock(long workerId, long usedBytesOnTier, String tierAlias, long blockId, long length, CommitBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public CommitBlockTResponse recv_commitBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public GetWorkerIdTResponse getWorkerId(WorkerNetAddress workerNetAddress, GetWorkerIdTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockMasterWorkerService.Iface
getWorkerId
in interface BlockMasterWorkerService.Iface
workerNetAddress
- the worker network addressoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_getWorkerId(WorkerNetAddress workerNetAddress, GetWorkerIdTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public GetWorkerIdTResponse recv_getWorkerId() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
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, org.apache.thrift.TException
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
org.apache.thrift.TException
public void send_registerWorker(long workerId, List<String> storageTiers, Map<String,Long> totalBytesOnTiers, Map<String,Long> usedBytesOnTiers, Map<String,List<Long>> currentBlocksOnTiers, RegisterWorkerTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public RegisterWorkerTResponse recv_registerWorker() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.