public static class WorkerService.Client extends org.apache.thrift.TServiceClient implements WorkerService.Iface
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkerService.Client.Factory |
| Constructor and Description |
|---|
WorkerService.Client(org.apache.thrift.protocol.TProtocol prot) |
WorkerService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot) |
| Modifier and Type | Method and Description |
|---|---|
void |
accessBlock(long blockId) |
boolean |
asyncCheckpoint(long fileId) |
void |
cacheBlock(long sessionId,
long blockId)
Used to cache a block into Tachyon space, worker will move the temporary block file from session
folder to data folder, and update the space usage information related.
|
void |
cancelBlock(long sessionId,
long blockId)
Used to cancel a block which is being written.
|
String |
lockBlock(long blockId,
long sessionId)
Lock the file in Tachyon's space while the session is reading it, and the path of the block file
locked will be returned, if the block file is not found, FileDoesNotExistException will be
thrown.
|
void |
persistFile(long fileId,
long nonce,
String path) |
boolean |
promoteBlock(long blockId)
Used to promote block on under storage layer to top storage layer when there are more than one
storage layers in Tachyon's space.
|
void |
recv_accessBlock() |
boolean |
recv_asyncCheckpoint() |
void |
recv_cacheBlock() |
void |
recv_cancelBlock() |
String |
recv_lockBlock() |
void |
recv_persistFile() |
boolean |
recv_promoteBlock() |
String |
recv_requestBlockLocation() |
boolean |
recv_requestSpace() |
void |
recv_sessionHeartbeat() |
boolean |
recv_unlockBlock() |
String |
requestBlockLocation(long sessionId,
long blockId,
long initialBytes)
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.
|
boolean |
requestSpace(long sessionId,
long blockId,
long requestBytes)
Used to request space for some block file.
|
void |
send_accessBlock(long blockId) |
void |
send_asyncCheckpoint(long fileId) |
void |
send_cacheBlock(long sessionId,
long blockId) |
void |
send_cancelBlock(long sessionId,
long blockId) |
void |
send_lockBlock(long blockId,
long sessionId) |
void |
send_persistFile(long fileId,
long nonce,
String path) |
void |
send_promoteBlock(long blockId) |
void |
send_requestBlockLocation(long sessionId,
long blockId,
long initialBytes) |
void |
send_requestSpace(long sessionId,
long blockId,
long requestBytes) |
void |
send_sessionHeartbeat(long sessionId,
List<Long> metrics) |
void |
send_unlockBlock(long blockId,
long sessionId) |
void |
sessionHeartbeat(long sessionId,
List<Long> metrics)
Local session send heartbeat to local worker to keep its temporary folder.
|
boolean |
unlockBlock(long blockId,
long sessionId)
Used to unlock a block after the block is accessed, if the block is to be removed, delete the
block file.
|
public WorkerService.Client(org.apache.thrift.protocol.TProtocol prot)
public WorkerService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot)
public void accessBlock(long blockId)
throws org.apache.thrift.TException
accessBlock in interface WorkerService.Ifaceorg.apache.thrift.TExceptionpublic void send_accessBlock(long blockId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_accessBlock()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean asyncCheckpoint(long fileId)
throws TachyonTException,
org.apache.thrift.TException
asyncCheckpoint in interface WorkerService.IfaceTachyonTExceptionorg.apache.thrift.TExceptionpublic void send_asyncCheckpoint(long fileId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean recv_asyncCheckpoint()
throws TachyonTException,
org.apache.thrift.TException
TachyonTExceptionorg.apache.thrift.TExceptionpublic void cacheBlock(long sessionId,
long blockId)
throws TachyonTException,
ThriftIOException,
org.apache.thrift.TException
WorkerService.IfacecacheBlock in interface WorkerService.IfaceTachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_cacheBlock(long sessionId,
long blockId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_cacheBlock()
throws TachyonTException,
ThriftIOException,
org.apache.thrift.TException
TachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void cancelBlock(long sessionId,
long blockId)
throws TachyonTException,
ThriftIOException,
org.apache.thrift.TException
WorkerService.IfacecancelBlock in interface WorkerService.IfaceTachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_cancelBlock(long sessionId,
long blockId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_cancelBlock()
throws TachyonTException,
ThriftIOException,
org.apache.thrift.TException
TachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic String lockBlock(long blockId, long sessionId) throws TachyonTException, org.apache.thrift.TException
WorkerService.IfacelockBlock in interface WorkerService.IfaceTachyonTExceptionorg.apache.thrift.TExceptionpublic void send_lockBlock(long blockId,
long sessionId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic String recv_lockBlock() throws TachyonTException, org.apache.thrift.TException
TachyonTExceptionorg.apache.thrift.TExceptionpublic void persistFile(long fileId,
long nonce,
String path)
throws TachyonTException,
org.apache.thrift.TException
persistFile in interface WorkerService.IfaceTachyonTExceptionorg.apache.thrift.TExceptionpublic void send_persistFile(long fileId,
long nonce,
String path)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_persistFile()
throws TachyonTException,
org.apache.thrift.TException
TachyonTExceptionorg.apache.thrift.TExceptionpublic boolean promoteBlock(long blockId)
throws TachyonTException,
ThriftIOException,
org.apache.thrift.TException
WorkerService.IfacepromoteBlock in interface WorkerService.IfaceTachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_promoteBlock(long blockId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean recv_promoteBlock()
throws TachyonTException,
ThriftIOException,
org.apache.thrift.TException
TachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic String requestBlockLocation(long sessionId, long blockId, long initialBytes) throws TachyonTException, ThriftIOException, org.apache.thrift.TException
WorkerService.IfacerequestBlockLocation in interface WorkerService.IfaceTachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic void send_requestBlockLocation(long sessionId,
long blockId,
long initialBytes)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic String recv_requestBlockLocation() throws TachyonTException, ThriftIOException, org.apache.thrift.TException
TachyonTExceptionThriftIOExceptionorg.apache.thrift.TExceptionpublic boolean requestSpace(long sessionId,
long blockId,
long requestBytes)
throws TachyonTException,
org.apache.thrift.TException
WorkerService.IfacerequestSpace in interface WorkerService.IfaceTachyonTExceptionorg.apache.thrift.TExceptionpublic void send_requestSpace(long sessionId,
long blockId,
long requestBytes)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean recv_requestSpace()
throws TachyonTException,
org.apache.thrift.TException
TachyonTExceptionorg.apache.thrift.TExceptionpublic void sessionHeartbeat(long sessionId,
List<Long> metrics)
throws org.apache.thrift.TException
WorkerService.IfacesessionHeartbeat in interface WorkerService.Ifaceorg.apache.thrift.TExceptionpublic void send_sessionHeartbeat(long sessionId,
List<Long> metrics)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void recv_sessionHeartbeat()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean unlockBlock(long blockId,
long sessionId)
throws org.apache.thrift.TException
WorkerService.IfaceunlockBlock in interface WorkerService.Ifaceorg.apache.thrift.TExceptionpublic void send_unlockBlock(long blockId,
long sessionId)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean recv_unlockBlock()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2015. All Rights Reserved.