public static interface BlockWorkerClientService.Iface extends AlluxioService.Iface
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.
|
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.
|
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
AccessBlockTResponse accessBlock(long blockId, AccessBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
blockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
CacheBlockTResponse cacheBlock(long sessionId, long blockId, CacheBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
sessionId
- the id of the current sessionblockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
CancelBlockTResponse cancelBlock(long sessionId, long blockId, CancelBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
sessionId
- the id of the current sessionblockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
LockBlockTResponse lockBlock(long blockId, long sessionId, LockBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
blockId
- the id of the block being accessedsessionId
- the id of the current sessionoptions
- the lock method optionsAlluxioTException
org.apache.thrift.TException
PromoteBlockTResponse promoteBlock(long blockId, PromoteBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
blockId
- the id of the block being accessedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
RemoveBlockTResponse removeBlock(long blockId, RemoveBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
blockId
- the id of the block being removedoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
RequestBlockLocationTResponse requestBlockLocation(long sessionId, long blockId, long initialBytes, int writeTier, RequestBlockLocationTOptions options) throws AlluxioTException, org.apache.thrift.TException
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
RequestSpaceTResponse requestSpace(long sessionId, long blockId, long requestBytes, RequestSpaceTOptions options) throws AlluxioTException, org.apache.thrift.TException
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
SessionBlockHeartbeatTResponse sessionBlockHeartbeat(long sessionId, List<Long> metrics, SessionBlockHeartbeatTOptions options) throws AlluxioTException, org.apache.thrift.TException
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
UnlockBlockTResponse unlockBlock(long blockId, long sessionId, UnlockBlockTOptions options) throws AlluxioTException, org.apache.thrift.TException
blockId
- the id of the block being accessedsessionId
- the id of the current sessionoptions
- the method optionsAlluxioTException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.