public static class BlockWorkerClientService.Client extends AlluxioService.Client implements BlockWorkerClientService.Iface
Modifier and Type | Class and Description |
---|---|
static class |
BlockWorkerClientService.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 |
---|---|
AccessBlockTResponse |
accessBlock(long blockId,
AccessBlockTOptions options)
Accesses a block given the block id.
|
CacheBlockTResponse |
cacheBlock(long sessionId,
long blockId,
CacheBlockTOptions options)
Used to cache a block into Alluxio space, worker will move the temporary block file from session
folder to data folder, and update the space usage information related.
|
CancelBlockTResponse |
cancelBlock(long sessionId,
long blockId,
CancelBlockTOptions options)
Used to cancel a block which is being written.
|
LockBlockTResponse |
lockBlock(long blockId,
long sessionId,
LockBlockTOptions options)
Locks the file in Alluxio's space while the session is reading it.
|
PromoteBlockTResponse |
promoteBlock(long blockId,
PromoteBlockTOptions options)
Used to promote block on under storage layer to top storage layer when there are more than one
storage layers in Alluxio's space.
|
AccessBlockTResponse |
recv_accessBlock() |
CacheBlockTResponse |
recv_cacheBlock() |
CancelBlockTResponse |
recv_cancelBlock() |
LockBlockTResponse |
recv_lockBlock() |
PromoteBlockTResponse |
recv_promoteBlock() |
RemoveBlockTResponse |
recv_removeBlock() |
RequestBlockLocationTResponse |
recv_requestBlockLocation() |
RequestSpaceTResponse |
recv_requestSpace() |
SessionBlockHeartbeatTResponse |
recv_sessionBlockHeartbeat() |
UnlockBlockTResponse |
recv_unlockBlock() |
RemoveBlockTResponse |
removeBlock(long blockId,
RemoveBlockTOptions options)
Used to remove a block from an Alluxio worker.
|
RequestBlockLocationTResponse |
requestBlockLocation(long sessionId,
long blockId,
long initialBytes,
int writeTier,
RequestBlockLocationTOptions options)
Used to allocate location and space for a new coming block, worker will choose the appropriate
storage directory which fits the initial block size by some allocation strategy, and the
temporary file path of the block file will be returned.
|
RequestSpaceTResponse |
requestSpace(long sessionId,
long blockId,
long requestBytes,
RequestSpaceTOptions options)
Used to request space for some block file.
|
void |
send_accessBlock(long blockId,
AccessBlockTOptions options) |
void |
send_cacheBlock(long sessionId,
long blockId,
CacheBlockTOptions options) |
void |
send_cancelBlock(long sessionId,
long blockId,
CancelBlockTOptions options) |
void |
send_lockBlock(long blockId,
long sessionId,
LockBlockTOptions options) |
void |
send_promoteBlock(long blockId,
PromoteBlockTOptions options) |
void |
send_removeBlock(long blockId,
RemoveBlockTOptions options) |
void |
send_requestBlockLocation(long sessionId,
long blockId,
long initialBytes,
int writeTier,
RequestBlockLocationTOptions options) |
void |
send_requestSpace(long sessionId,
long blockId,
long requestBytes,
RequestSpaceTOptions options) |
void |
send_sessionBlockHeartbeat(long sessionId,
List<Long> metrics,
SessionBlockHeartbeatTOptions options) |
void |
send_unlockBlock(long blockId,
long sessionId,
UnlockBlockTOptions options) |
SessionBlockHeartbeatTResponse |
sessionBlockHeartbeat(long sessionId,
List<Long> metrics,
SessionBlockHeartbeatTOptions options)
Local session send heartbeat to local worker to keep its temporary folder.
|
UnlockBlockTResponse |
unlockBlock(long blockId,
long sessionId,
UnlockBlockTOptions options)
Used to unlock a block after the block is accessed, if the block is to be removed, delete the
block file.
|
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 AccessBlockTResponse accessBlock(long blockId, AccessBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
accessBlock
in interface BlockWorkerClientService.Iface
blockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_accessBlock(long blockId, AccessBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public AccessBlockTResponse recv_accessBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public CacheBlockTResponse cacheBlock(long sessionId, long blockId, CacheBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
cacheBlock
in interface BlockWorkerClientService.Iface
sessionId
- the id of the current sessionblockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_cacheBlock(long sessionId, long blockId, CacheBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public CacheBlockTResponse recv_cacheBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public CancelBlockTResponse cancelBlock(long sessionId, long blockId, CancelBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
cancelBlock
in interface BlockWorkerClientService.Iface
sessionId
- the id of the current sessionblockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_cancelBlock(long sessionId, long blockId, CancelBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public CancelBlockTResponse recv_cancelBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public LockBlockTResponse lockBlock(long blockId, long sessionId, LockBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
lockBlock
in interface BlockWorkerClientService.Iface
blockId
- the id of the block being accessedsessionId
- the id of the current sessionoptions
- the lock method optionsAlluxioTException
org.apache.thrift.TException
public void send_lockBlock(long blockId, long sessionId, LockBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public LockBlockTResponse recv_lockBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public PromoteBlockTResponse promoteBlock(long blockId, PromoteBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
promoteBlock
in interface BlockWorkerClientService.Iface
blockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_promoteBlock(long blockId, PromoteBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public PromoteBlockTResponse recv_promoteBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public RemoveBlockTResponse removeBlock(long blockId, RemoveBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
removeBlock
in interface BlockWorkerClientService.Iface
blockId
- the id of the block being removedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_removeBlock(long blockId, RemoveBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public RemoveBlockTResponse recv_removeBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public RequestBlockLocationTResponse requestBlockLocation(long sessionId, long blockId, long initialBytes, int writeTier, RequestBlockLocationTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
requestBlockLocation
in interface BlockWorkerClientService.Iface
sessionId
- the id of the current sessionblockId
- the id of the block being accessedinitialBytes
- initial number of bytes requestedwriteTier
- the target tier to write tooptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_requestBlockLocation(long sessionId, long blockId, long initialBytes, int writeTier, RequestBlockLocationTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public RequestBlockLocationTResponse recv_requestBlockLocation() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public RequestSpaceTResponse requestSpace(long sessionId, long blockId, long requestBytes, RequestSpaceTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
requestSpace
in interface BlockWorkerClientService.Iface
sessionId
- the id of the current sessionblockId
- the id of the block being accessedrequestBytes
- the number of bytes requestedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_requestSpace(long sessionId, long blockId, long requestBytes, RequestSpaceTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public RequestSpaceTResponse recv_requestSpace() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public SessionBlockHeartbeatTResponse sessionBlockHeartbeat(long sessionId, List<Long> metrics, SessionBlockHeartbeatTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
sessionBlockHeartbeat
in interface BlockWorkerClientService.Iface
sessionId
- the id of the current sessionmetrics
- deprecated since 1.3.0 and will be removed in 2.0options
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_sessionBlockHeartbeat(long sessionId, List<Long> metrics, SessionBlockHeartbeatTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public SessionBlockHeartbeatTResponse recv_sessionBlockHeartbeat() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
public UnlockBlockTResponse unlockBlock(long blockId, long sessionId, UnlockBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
BlockWorkerClientService.Iface
unlockBlock
in interface BlockWorkerClientService.Iface
blockId
- the id of the block being accessedsessionId
- the id of the current sessionoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
public void send_unlockBlock(long blockId, long sessionId, UnlockBlockTOptions options) throws org.apache.thrift.TException
org.apache.thrift.TException
public UnlockBlockTResponse recv_unlockBlock() throws AlluxioTException, org.apache.thrift.TException
AlluxioTException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.