public static interface MasterService.Iface
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCheckpoint(long workerId,
int fileId,
long length,
String checkpointPath) |
ClientFileInfo |
getFileStatus(int fileId,
String path) |
List<ClientWorkerInfo> |
getWorkersInfo() |
List<ClientFileInfo> |
liststatus(String path) |
void |
user_completeFile(int fileId) |
int |
user_createDependency(List<String> parents,
List<String> children,
String commandPrefix,
List<ByteBuffer> data,
String comment,
String framework,
String frameworkVersion,
int dependencyType,
long childrenBlockSizeByte) |
int |
user_createFile(String path,
String ufsPath,
long blockSizeByte,
boolean recursive) |
long |
user_createNewBlock(int fileId) |
int |
user_createRawTable(String path,
int columns,
ByteBuffer metadata) |
boolean |
user_delete(int fileId,
String path,
boolean recursive)
Delete file
|
boolean |
user_freepath(int fileId,
String path,
boolean recursive) |
long |
user_getBlockId(int fileId,
int index) |
ClientBlockInfo |
user_getClientBlockInfo(long blockId)
Get block's ClientBlockInfo.
|
ClientDependencyInfo |
user_getClientDependencyInfo(int dependencyId) |
ClientRawTableInfo |
user_getClientRawTableInfo(int id,
String path)
Get RawTable's info; Return a ClientRawTable instance with id 0 if the system does not contain
the table.
|
List<ClientBlockInfo> |
user_getFileBlocks(int fileId,
String path)
Get file blocks info.
|
int |
user_getRawTableId(String path)
Return 0 if does not contain the Table, return fileId if it exists.
|
String |
user_getUfsAddress() |
long |
user_getUserId() |
NetAddress |
user_getWorker(boolean random,
String host)
Get local worker NetAddress
|
void |
user_heartbeat()
Returns if the message was received.
|
boolean |
user_mkdirs(String path,
boolean recursive) |
boolean |
user_rename(int fileId,
String srcPath,
String dstPath) |
void |
user_reportLostFile(int fileId) |
void |
user_requestFilesInDependency(int depId) |
void |
user_setPinned(int fileId,
boolean pinned) |
void |
user_updateRawTableMetadata(int tableId,
ByteBuffer metadata) |
void |
worker_cacheBlock(long workerId,
long workerUsedBytes,
long storageDirId,
long blockId,
long length)
Update information of the block newly cached to master, including used Tachyon space size in
bytes, the id of the storage directory in which the block is, the id of the block and the size
of the block in bytes.
|
Set<Integer> |
worker_getPinIdList() |
List<Integer> |
worker_getPriorityDependencyList() |
Command |
worker_heartbeat(long workerId,
long usedBytes,
List<Long> removedBlockIds,
Map<Long,List<Long>> addedBlockIds)
Heart beat between worker and master, worker update used Tachyon space in bytes, removed
blocks and added blocks in each storage directory by eviction and promotion to master, and
return the command from master to worker.
|
long |
worker_register(NetAddress workerNetAddress,
long totalBytes,
long usedBytes,
Map<Long,List<Long>> currentBlocks)
Worker register and synch up capacity of Tachyon space, used space bytes and blocks in each
storage directory to master, the return value rv % 100,000 is really workerId, rv / 1000,000
is master started time.
|
boolean addCheckpoint(long workerId,
int fileId,
long length,
String checkpointPath)
throws FileDoesNotExistException,
SuspectedFileSizeException,
BlockInfoException,
org.apache.thrift.TException
FileDoesNotExistExceptionSuspectedFileSizeExceptionBlockInfoExceptionorg.apache.thrift.TExceptionList<ClientWorkerInfo> getWorkersInfo() throws org.apache.thrift.TException
org.apache.thrift.TExceptionList<ClientFileInfo> liststatus(String path) throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException
InvalidPathExceptionFileDoesNotExistExceptionorg.apache.thrift.TExceptionlong worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, Map<Long,List<Long>> currentBlocks) throws BlockInfoException, org.apache.thrift.TException
workerNetAddress - totalBytes - usedBytes - currentBlocks - BlockInfoExceptionorg.apache.thrift.TExceptionCommand worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlockIds, Map<Long,List<Long>> addedBlockIds) throws BlockInfoException, org.apache.thrift.TException
workerId - usedBytes - removedBlockIds - addedBlockIds - BlockInfoExceptionorg.apache.thrift.TExceptionvoid worker_cacheBlock(long workerId,
long workerUsedBytes,
long storageDirId,
long blockId,
long length)
throws FileDoesNotExistException,
SuspectedFileSizeException,
BlockInfoException,
org.apache.thrift.TException
workerId - workerUsedBytes - storageDirId - blockId - length - FileDoesNotExistExceptionSuspectedFileSizeExceptionBlockInfoExceptionorg.apache.thrift.TExceptionSet<Integer> worker_getPinIdList() throws org.apache.thrift.TException
org.apache.thrift.TExceptionList<Integer> worker_getPriorityDependencyList() throws org.apache.thrift.TException
org.apache.thrift.TExceptionint user_createDependency(List<String> parents, List<String> children, String commandPrefix, List<ByteBuffer> data, String comment, String framework, String frameworkVersion, int dependencyType, long childrenBlockSizeByte) throws InvalidPathException, FileDoesNotExistException, FileAlreadyExistException, BlockInfoException, TachyonException, org.apache.thrift.TException
InvalidPathExceptionFileDoesNotExistExceptionFileAlreadyExistExceptionBlockInfoExceptionTachyonExceptionorg.apache.thrift.TExceptionClientDependencyInfo user_getClientDependencyInfo(int dependencyId) throws DependencyDoesNotExistException, org.apache.thrift.TException
DependencyDoesNotExistExceptionorg.apache.thrift.TExceptionvoid user_reportLostFile(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
FileDoesNotExistExceptionorg.apache.thrift.TExceptionvoid user_requestFilesInDependency(int depId)
throws DependencyDoesNotExistException,
org.apache.thrift.TException
DependencyDoesNotExistExceptionorg.apache.thrift.TExceptionint user_createFile(String path, String ufsPath, long blockSizeByte, boolean recursive) throws FileAlreadyExistException, InvalidPathException, BlockInfoException, SuspectedFileSizeException, TachyonException, org.apache.thrift.TException
FileAlreadyExistExceptionInvalidPathExceptionBlockInfoExceptionSuspectedFileSizeExceptionTachyonExceptionorg.apache.thrift.TExceptionlong user_createNewBlock(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
FileDoesNotExistExceptionorg.apache.thrift.TExceptionvoid user_completeFile(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
FileDoesNotExistExceptionorg.apache.thrift.TExceptionlong user_getUserId()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionlong user_getBlockId(int fileId,
int index)
throws FileDoesNotExistException,
org.apache.thrift.TException
FileDoesNotExistExceptionorg.apache.thrift.TExceptionNetAddress user_getWorker(boolean random, String host) throws NoWorkerException, org.apache.thrift.TException
random - host - NoWorkerExceptionorg.apache.thrift.TExceptionClientFileInfo getFileStatus(int fileId, String path) throws InvalidPathException, org.apache.thrift.TException
InvalidPathExceptionorg.apache.thrift.TExceptionClientBlockInfo user_getClientBlockInfo(long blockId) throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException
blockId - FileDoesNotExistExceptionBlockInfoExceptionorg.apache.thrift.TExceptionList<ClientBlockInfo> user_getFileBlocks(int fileId, String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
fileId - path - FileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionboolean user_delete(int fileId,
String path,
boolean recursive)
throws TachyonException,
org.apache.thrift.TException
fileId - path - recursive - TachyonExceptionorg.apache.thrift.TExceptionboolean user_rename(int fileId,
String srcPath,
String dstPath)
throws FileAlreadyExistException,
FileDoesNotExistException,
InvalidPathException,
org.apache.thrift.TException
FileAlreadyExistExceptionFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionvoid user_setPinned(int fileId,
boolean pinned)
throws FileDoesNotExistException,
org.apache.thrift.TException
FileDoesNotExistExceptionorg.apache.thrift.TExceptionboolean user_mkdirs(String path, boolean recursive) throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException
FileAlreadyExistExceptionInvalidPathExceptionTachyonExceptionorg.apache.thrift.TExceptionint user_createRawTable(String path, int columns, ByteBuffer metadata) throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException
FileAlreadyExistExceptionInvalidPathExceptionTableColumnExceptionTachyonExceptionorg.apache.thrift.TExceptionint user_getRawTableId(String path) throws InvalidPathException, org.apache.thrift.TException
path - InvalidPathExceptionorg.apache.thrift.TExceptionClientRawTableInfo user_getClientRawTableInfo(int id, String path) throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException
id - path - TableDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionvoid user_updateRawTableMetadata(int tableId,
ByteBuffer metadata)
throws TableDoesNotExistException,
TachyonException,
org.apache.thrift.TException
TableDoesNotExistExceptionTachyonExceptionorg.apache.thrift.TExceptionString user_getUfsAddress() throws org.apache.thrift.TException
org.apache.thrift.TExceptionvoid user_heartbeat()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionboolean user_freepath(int fileId,
String path,
boolean recursive)
throws FileDoesNotExistException,
org.apache.thrift.TException
FileDoesNotExistExceptionorg.apache.thrift.TExceptionCopyright © 2015. All Rights Reserved.