public class MasterServiceHandler extends Object implements MasterService.Iface
| Constructor and Description |
|---|
MasterServiceHandler(MasterInfo masterInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCheckpoint(long workerId,
int fileId,
long fileSizeBytes,
String checkpointPath) |
ClientFileInfo |
getClientFileInfoById(int id) |
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,
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 id,
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.
|
ClientDependencyInfo |
user_getClientDependencyInfo(int dependencyId) |
ClientFileInfo |
user_getClientFileInfoByPath(String path) |
ClientRawTableInfo |
user_getClientRawTableInfoById(int id) |
ClientRawTableInfo |
user_getClientRawTableInfoByPath(String path) |
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 filePath)
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_reportLostFile(int fileId) |
void |
user_requestFilesInDependency(int depId) |
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() |
List<Integer> |
worker_getPriorityDependencyList() |
Command |
worker_heartbeat(long workerId,
long usedBytes,
List<Long> removedBlockIds) |
long |
worker_register(NetAddress workerNetAddress,
long totalBytes,
long usedBytes,
List<Long> currentBlockIds)
Worker register.
|
public MasterServiceHandler(MasterInfo masterInfo)
public boolean addCheckpoint(long workerId,
int fileId,
long fileSizeBytes,
String checkpointPath)
throws FileDoesNotExistException,
SuspectedFileSizeException,
BlockInfoException,
org.apache.thrift.TException
addCheckpoint in interface MasterService.IfaceFileDoesNotExistExceptionSuspectedFileSizeExceptionBlockInfoExceptionorg.apache.thrift.TExceptionpublic List<ClientFileInfo> liststatus(String path) throws InvalidPathException, FileDoesNotExistException, org.apache.thrift.TException
liststatus in interface MasterService.IfaceInvalidPathExceptionFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic ClientFileInfo getClientFileInfoById(int id) throws FileDoesNotExistException, org.apache.thrift.TException
getClientFileInfoById in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic List<ClientWorkerInfo> getWorkersInfo() throws org.apache.thrift.TException
getWorkersInfo in interface MasterService.Ifaceorg.apache.thrift.TExceptionpublic void user_completeFile(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
user_completeFile in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic int user_createFile(String path, long blockSizeByte) throws FileAlreadyExistException, InvalidPathException, BlockInfoException, TachyonException, org.apache.thrift.TException
user_createFile in interface MasterService.IfaceFileAlreadyExistExceptionInvalidPathExceptionBlockInfoExceptionTachyonExceptionorg.apache.thrift.TExceptionpublic int user_createFileOnCheckpoint(String path, String checkpointPath) throws FileAlreadyExistException, InvalidPathException, SuspectedFileSizeException, BlockInfoException, TachyonException, org.apache.thrift.TException
user_createFileOnCheckpoint in interface MasterService.IfaceFileAlreadyExistExceptionInvalidPathExceptionSuspectedFileSizeExceptionBlockInfoExceptionTachyonExceptionorg.apache.thrift.TExceptionpublic long user_createNewBlock(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
user_createNewBlock in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic int user_createRawTable(String path, int columns, ByteBuffer metadata) throws FileAlreadyExistException, InvalidPathException, TableColumnException, TachyonException, org.apache.thrift.TException
user_createRawTable in interface MasterService.IfaceFileAlreadyExistExceptionInvalidPathExceptionTableColumnExceptionTachyonExceptionorg.apache.thrift.TExceptionpublic boolean user_deleteById(int id,
boolean recursive)
throws TachyonException,
org.apache.thrift.TException
user_deleteById in interface MasterService.IfaceTachyonExceptionorg.apache.thrift.TExceptionpublic boolean user_deleteByPath(String path, boolean recursive) throws TachyonException, org.apache.thrift.TException
user_deleteByPath in interface MasterService.IfaceTachyonExceptionorg.apache.thrift.TExceptionpublic NetAddress user_getWorker(boolean random, String host) throws NoWorkerException, org.apache.thrift.TException
MasterService.Ifaceuser_getWorker in interface MasterService.IfaceNoWorkerExceptionorg.apache.thrift.TExceptionpublic long user_getBlockId(int fileId,
int index)
throws FileDoesNotExistException,
org.apache.thrift.TException
user_getBlockId in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic ClientFileInfo user_getClientFileInfoByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
user_getClientFileInfoByPath in interface MasterService.IfaceFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic ClientBlockInfo user_getClientBlockInfo(long blockId) throws FileDoesNotExistException, BlockInfoException, org.apache.thrift.TException
MasterService.Ifaceuser_getClientBlockInfo in interface MasterService.IfaceFileDoesNotExistExceptionBlockInfoExceptionorg.apache.thrift.TExceptionpublic List<ClientBlockInfo> user_getFileBlocksById(int fileId) throws FileDoesNotExistException, org.apache.thrift.TException
MasterService.Ifaceuser_getFileBlocksById in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic List<ClientBlockInfo> user_getFileBlocksByPath(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
MasterService.Ifaceuser_getFileBlocksByPath in interface MasterService.IfaceFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic int user_getFileId(String filePath) throws InvalidPathException, org.apache.thrift.TException
MasterService.Ifaceuser_getFileId in interface MasterService.IfaceInvalidPathExceptionorg.apache.thrift.TExceptionpublic int user_getRawTableId(String path) throws InvalidPathException, org.apache.thrift.TException
user_getRawTableId in interface MasterService.IfaceInvalidPathExceptionorg.apache.thrift.TExceptionpublic ClientRawTableInfo user_getClientRawTableInfoById(int id) throws TableDoesNotExistException, org.apache.thrift.TException
user_getClientRawTableInfoById in interface MasterService.IfaceTableDoesNotExistExceptionorg.apache.thrift.TExceptionpublic ClientRawTableInfo user_getClientRawTableInfoByPath(String path) throws TableDoesNotExistException, InvalidPathException, org.apache.thrift.TException
user_getClientRawTableInfoByPath in interface MasterService.IfaceTableDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic long user_getUserId()
throws org.apache.thrift.TException
user_getUserId in interface MasterService.Ifaceorg.apache.thrift.TExceptionpublic int user_getNumberOfFiles(String path) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
user_getNumberOfFiles in interface MasterService.IfaceFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic String user_getUnderfsAddress() throws org.apache.thrift.TException
user_getUnderfsAddress in interface MasterService.Ifaceorg.apache.thrift.TExceptionpublic List<Integer> user_listFiles(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
user_listFiles in interface MasterService.IfaceFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic List<String> user_ls(String path, boolean recursive) throws FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
user_ls in interface MasterService.IfaceFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic boolean user_mkdir(String path) throws FileAlreadyExistException, InvalidPathException, TachyonException, org.apache.thrift.TException
user_mkdir in interface MasterService.IfaceFileAlreadyExistExceptionInvalidPathExceptionTachyonExceptionorg.apache.thrift.TExceptionpublic void user_outOfMemoryForPinFile(int fileId)
throws org.apache.thrift.TException
user_outOfMemoryForPinFile in interface MasterService.Ifaceorg.apache.thrift.TExceptionpublic void user_rename(String srcPath, String dstPath) throws FileAlreadyExistException, FileDoesNotExistException, InvalidPathException, org.apache.thrift.TException
user_rename in interface MasterService.IfaceFileAlreadyExistExceptionFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic void user_renameTo(int fileId,
String dstPath)
throws FileAlreadyExistException,
FileDoesNotExistException,
InvalidPathException,
org.apache.thrift.TException
user_renameTo in interface MasterService.IfaceFileAlreadyExistExceptionFileDoesNotExistExceptionInvalidPathExceptionorg.apache.thrift.TExceptionpublic void user_unpinFile(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
user_unpinFile in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic void user_updateRawTableMetadata(int tableId,
ByteBuffer metadata)
throws TableDoesNotExistException,
TachyonException,
org.apache.thrift.TException
user_updateRawTableMetadata in interface MasterService.IfaceTableDoesNotExistExceptionTachyonExceptionorg.apache.thrift.TExceptionpublic void worker_cacheBlock(long workerId,
long workerUsedBytes,
long blockId,
long length)
throws FileDoesNotExistException,
SuspectedFileSizeException,
BlockInfoException,
org.apache.thrift.TException
worker_cacheBlock in interface MasterService.IfaceFileDoesNotExistExceptionSuspectedFileSizeExceptionBlockInfoExceptionorg.apache.thrift.TExceptionpublic Set<Integer> worker_getPinIdList() throws org.apache.thrift.TException
worker_getPinIdList in interface MasterService.Ifaceorg.apache.thrift.TExceptionpublic Command worker_heartbeat(long workerId, long usedBytes, List<Long> removedBlockIds) throws BlockInfoException, org.apache.thrift.TException
worker_heartbeat in interface MasterService.IfaceBlockInfoExceptionorg.apache.thrift.TExceptionpublic long worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Long> currentBlockIds) throws BlockInfoException, org.apache.thrift.TException
MasterService.Ifaceworker_register in interface MasterService.IfaceBlockInfoExceptionorg.apache.thrift.TExceptionpublic List<Integer> worker_getPriorityDependencyList() throws org.apache.thrift.TException
worker_getPriorityDependencyList in interface MasterService.Ifaceorg.apache.thrift.TExceptionpublic int 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
user_createDependency in interface MasterService.IfaceInvalidPathExceptionFileDoesNotExistExceptionFileAlreadyExistExceptionBlockInfoExceptionTachyonExceptionorg.apache.thrift.TExceptionpublic ClientDependencyInfo user_getClientDependencyInfo(int dependencyId) throws DependencyDoesNotExistException, org.apache.thrift.TException
user_getClientDependencyInfo in interface MasterService.IfaceDependencyDoesNotExistExceptionorg.apache.thrift.TExceptionpublic void user_reportLostFile(int fileId)
throws FileDoesNotExistException,
org.apache.thrift.TException
user_reportLostFile in interface MasterService.IfaceFileDoesNotExistExceptionorg.apache.thrift.TExceptionpublic void user_requestFilesInDependency(int depId)
throws DependencyDoesNotExistException,
org.apache.thrift.TException
user_requestFilesInDependency in interface MasterService.IfaceDependencyDoesNotExistExceptionorg.apache.thrift.TExceptionCopyright © 2014. All rights reserved.