public static interface MasterService.Iface
Modifier and Type | Method and Description |
---|---|
boolean |
addCheckpoint(long workerId,
int fileId,
long length,
String checkpointPath) |
List<ClientWorkerInfo> |
getWorkersInfo() |
List<ClientFileInfo> |
liststatus(String path) |
void |
user_completeFile(int fileId) |
int |
user_createFile(String path,
long blockSizeByte) |
int |
user_createFileOnCheckpoint(String path,
String checkpointPath) |
long |
user_createNewBlock(int fileId) |
int |
user_createRawTable(String path,
int columns,
ByteBuffer metadata) |
boolean |
user_deleteById(int fileId,
boolean recursive) |
boolean |
user_deleteByPath(String path,
boolean recursive) |
long |
user_getBlockId(int fileId,
int index) |
ClientBlockInfo |
user_getClientBlockInfo(long blockId)
Get block's ClientBlockInfo.
|
ClientFileInfo |
user_getClientFileInfoById(int fileId) |
ClientFileInfo |
user_getClientFileInfoByPath(String path) |
ClientRawTableInfo |
user_getClientRawTableInfoById(int tableId) |
ClientRawTableInfo |
user_getClientRawTableInfoByPath(String tablePath) |
List<ClientBlockInfo> |
user_getFileBlocksById(int fileId)
Get file locations by file Id.
|
List<ClientBlockInfo> |
user_getFileBlocksByPath(String path)
Get file locations by path
|
int |
user_getFileId(String path)
Return -1 if does not contain the file, return fileId if it exists.
|
int |
user_getNumberOfFiles(String path) |
int |
user_getRawTableId(String path) |
String |
user_getUnderfsAddress() |
long |
user_getUserId() |
NetAddress |
user_getWorker(boolean random,
String host)
Get local worker NetAddress
|
List<Integer> |
user_listFiles(String path,
boolean recursive) |
List<String> |
user_ls(String path,
boolean recursive) |
boolean |
user_mkdir(String path) |
void |
user_outOfMemoryForPinFile(int fileId) |
void |
user_rename(String srcPath,
String dstPath) |
void |
user_renameTo(int fileId,
String dstPath) |
void |
user_unpinFile(int fileId) |
void |
user_updateRawTableMetadata(int tableId,
ByteBuffer metadata) |
void |
worker_cacheBlock(long workerId,
long workerUsedBytes,
long blockId,
long length) |
Set<Integer> |
worker_getPinIdList() |
Command |
worker_heartbeat(long workerId,
long usedBytes,
List<Long> removedBlocks) |
long |
worker_register(NetAddress workerNetAddress,
long totalBytes,
long usedBytes,
List<Long> currentBlocks)
Worker register.
|
boolean addCheckpoint(long workerId, int fileId, long length, String checkpointPath) throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException
FileDoesNotExistException
SuspectedFileSizeException
BlockInfoException
org.apache.thrift.TException
List<ClientWorkerInfo> getWorkersInfo() throws org.apache.thrift.TException
org.apache.thrift.TException
List<ClientFileInfo> liststatus(String path) throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException
InvalidPathException
FileDoesNotExistException
org.apache.thrift.TException
long worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlocks) throws BlockInfoException, org.apache.thrift.TException
workerNetAddress
- totalBytes
- usedBytes
- currentBlocks
- BlockInfoException
org.apache.thrift.TException
Command worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlocks) throws BlockInfoException, org.apache.thrift.TException
BlockInfoException
org.apache.thrift.TException
void worker_cacheBlock(long workerId, long workerUsedBytes, long blockId, long length) throws FileDoesNotExistException, SuspectedFileSizeException, BlockInfoException, org.apache.thrift.TException
FileDoesNotExistException
SuspectedFileSizeException
BlockInfoException
org.apache.thrift.TException
Set<Integer> worker_getPinIdList() throws org.apache.thrift.TException
org.apache.thrift.TException
int user_createFile(String path, long blockSizeByte) throws FileAlreadyExistException, InvalidPathException, BlockInfoException, TachyonException, org.apache.thrift.TException
FileAlreadyExistException
InvalidPathException
BlockInfoException
TachyonException
org.apache.thrift.TException
int user_createFileOnCheckpoint(String path, String checkpointPath) throws FileAlreadyExistException, InvalidPathException, SuspectedFileSizeException, BlockInfoException, TachyonException, org.apache.thrift.TException
FileAlreadyExistException
InvalidPathException
SuspectedFileSizeException
BlockInfoException
TachyonException
org.apache.thrift.TException
long user_createNewBlock(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
FileDoesNotExistException
org.apache.thrift.TException
void user_completeFile(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
FileDoesNotExistException
org.apache.thrift.TException
int user_getFileId(String path) throws InvalidPathException, org.apache.thrift.TException
path
- InvalidPathException
org.apache.thrift.TException
long user_getUserId() throws org.apache.thrift.TException
org.apache.thrift.TException
long user_getBlockId(int fileId, int index) throws FileDoesNotExistException, org.apache.thrift.TException
FileDoesNotExistException
org.apache.thrift.TException
NetAddress user_getWorker(boolean random, String host) throws NoWorkerException, org.apache.thrift.TException
random
- host
- NoWorkerException
org.apache.thrift.TException
ClientFileInfo user_getClientFileInfoById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
FileDoesNotExistException
org.apache.thrift.TException
ClientFileInfo user_getClientFileInfoByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
ClientBlockInfo user_getClientBlockInfo(long blockId) throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException
blockId
- FileDoesNotExistException
BlockInfoException
org.apache.thrift.TException
List<ClientBlockInfo> user_getFileBlocksById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
fileId
- FileDoesNotExistException
org.apache.thrift.TException
List<ClientBlockInfo> user_getFileBlocksByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
path
- FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
List<Integer> user_listFiles(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
List<String> user_ls(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
boolean user_deleteById(int fileId, boolean recursive) throws TachyonException, org.apache.thrift.TException
TachyonException
org.apache.thrift.TException
boolean user_deleteByPath(String path, boolean recursive) throws TachyonException, org.apache.thrift.TException
TachyonException
org.apache.thrift.TException
void user_outOfMemoryForPinFile(int fileId) throws org.apache.thrift.TException
org.apache.thrift.TException
void user_rename(String srcPath, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
FileAlreadyExistException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
void user_renameTo(int fileId, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
FileAlreadyExistException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
void user_unpinFile(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
FileDoesNotExistException
org.apache.thrift.TException
boolean user_mkdir(String path) throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException
FileAlreadyExistException
InvalidPathException
TachyonException
org.apache.thrift.TException
int user_createRawTable(String path, int columns, ByteBuffer metadata) throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException
FileAlreadyExistException
InvalidPathException
TableColumnException
TachyonException
org.apache.thrift.TException
int user_getRawTableId(String path) throws InvalidPathException, org.apache.thrift.TException
InvalidPathException
org.apache.thrift.TException
ClientRawTableInfo user_getClientRawTableInfoById(int tableId) throws TableDoesNotExistException, org.apache.thrift.TException
TableDoesNotExistException
org.apache.thrift.TException
ClientRawTableInfo user_getClientRawTableInfoByPath(String tablePath) throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException
TableDoesNotExistException
InvalidPathException
org.apache.thrift.TException
void user_updateRawTableMetadata(int tableId, ByteBuffer metadata) throws TableDoesNotExistException, TachyonException, org.apache.thrift.TException
TableDoesNotExistException
TachyonException
org.apache.thrift.TException
int user_getNumberOfFiles(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException
String user_getUnderfsAddress() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2013. All rights reserved.