tachyon.thrift
Interface MasterService.Iface

All Known Implementing Classes:
MasterService.Client, MasterServiceHandler
Enclosing class:
MasterService

public static interface MasterService.Iface


Method Summary
 boolean addCheckpoint(long workerId, int fileId, long fileSizeBytes, String checkpointPath)
           
 List<ClientFileInfo> cmd_ls(String path)
           
 int user_createFile(String filePath)
           
 int user_createRawTable(String path, int columns, ByteBuffer metadata)
           
 void user_deleteById(int fileId)
           
 void user_deleteByPath(String path)
           
 ClientFileInfo user_getClientFileInfoById(int fileId)
           
 ClientFileInfo user_getClientFileInfoByPath(String filePath)
           
 ClientRawTableInfo user_getClientRawTableInfoById(int tableId)
           
 ClientRawTableInfo user_getClientRawTableInfoByPath(String tablePath)
           
 int user_getFileId(String filePath)
           
 List<NetAddress> user_getFileLocationsById(int fileId)
           
 List<NetAddress> user_getFileLocationsByPath(String filePath)
           
 int user_getNumberOfFiles(String path)
           
 int user_getRawTableId(String path)
           
 String user_getUnderfsAddress()
           
 long user_getUserId()
           
 NetAddress user_getWorker(boolean random, String host)
           
 List<Integer> user_listFiles(String path, boolean recursive)
           
 List<String> user_ls(String path, boolean recursive)
           
 int user_mkdir(String path)
           
 void user_outOfMemoryForPinFile(int fileId)
           
 void user_renameFile(String srcFilePath, String dstFilePath)
           
 void user_unpinFile(int fileId)
           
 void user_updateRawTableMetadata(int tableId, ByteBuffer metadata)
           
 void worker_cacheFile(long workerId, long workerUsedBytes, int fileId, long fileSizeBytes)
           
 Set<Integer> worker_getPinIdList()
           
 Command worker_heartbeat(long workerId, long usedBytes, List<Integer> removedFiles)
           
 long worker_register(NetAddress workerNetAddress, long totalBytes, long usedBytes, List<Integer> currentFiles)
           
 

Method Detail

addCheckpoint

boolean addCheckpoint(long workerId,
                      int fileId,
                      long fileSizeBytes,
                      String checkpointPath)
                      throws FileDoesNotExistException,
                             SuspectedFileSizeException,
                             org.apache.thrift.TException
Throws:
FileDoesNotExistException
SuspectedFileSizeException
org.apache.thrift.TException

worker_register

long worker_register(NetAddress workerNetAddress,
                     long totalBytes,
                     long usedBytes,
                     List<Integer> currentFiles)
                     throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

worker_heartbeat

Command worker_heartbeat(long workerId,
                         long usedBytes,
                         List<Integer> removedFiles)
                         throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

worker_cacheFile

void worker_cacheFile(long workerId,
                      long workerUsedBytes,
                      int fileId,
                      long fileSizeBytes)
                      throws FileDoesNotExistException,
                             SuspectedFileSizeException,
                             org.apache.thrift.TException
Throws:
FileDoesNotExistException
SuspectedFileSizeException
org.apache.thrift.TException

worker_getPinIdList

Set<Integer> worker_getPinIdList()
                                 throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

user_createFile

int user_createFile(String filePath)
                    throws FileAlreadyExistException,
                           InvalidPathException,
                           org.apache.thrift.TException
Throws:
FileAlreadyExistException
InvalidPathException
org.apache.thrift.TException

user_getFileId

int user_getFileId(String filePath)
                   throws InvalidPathException,
                          org.apache.thrift.TException
Throws:
InvalidPathException
org.apache.thrift.TException

user_getUserId

long user_getUserId()
                    throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

user_getWorker

NetAddress user_getWorker(boolean random,
                          String host)
                          throws NoLocalWorkerException,
                                 org.apache.thrift.TException
Throws:
NoLocalWorkerException
org.apache.thrift.TException

user_getClientFileInfoById

ClientFileInfo user_getClientFileInfoById(int fileId)
                                          throws FileDoesNotExistException,
                                                 org.apache.thrift.TException
Throws:
FileDoesNotExistException
org.apache.thrift.TException

user_getClientFileInfoByPath

ClientFileInfo user_getClientFileInfoByPath(String filePath)
                                            throws FileDoesNotExistException,
                                                   InvalidPathException,
                                                   org.apache.thrift.TException
Throws:
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_getFileLocationsById

List<NetAddress> user_getFileLocationsById(int fileId)
                                           throws FileDoesNotExistException,
                                                  org.apache.thrift.TException
Throws:
FileDoesNotExistException
org.apache.thrift.TException

user_getFileLocationsByPath

List<NetAddress> user_getFileLocationsByPath(String filePath)
                                             throws FileDoesNotExistException,
                                                    InvalidPathException,
                                                    org.apache.thrift.TException
Throws:
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_listFiles

List<Integer> user_listFiles(String path,
                             boolean recursive)
                             throws FileDoesNotExistException,
                                    InvalidPathException,
                                    org.apache.thrift.TException
Throws:
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_ls

List<String> user_ls(String path,
                     boolean recursive)
                     throws FileDoesNotExistException,
                            InvalidPathException,
                            org.apache.thrift.TException
Throws:
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_deleteById

void user_deleteById(int fileId)
                     throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

user_deleteByPath

void user_deleteByPath(String path)
                       throws InvalidPathException,
                              FileDoesNotExistException,
                              org.apache.thrift.TException
Throws:
InvalidPathException
FileDoesNotExistException
org.apache.thrift.TException

user_outOfMemoryForPinFile

void user_outOfMemoryForPinFile(int fileId)
                                throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

user_renameFile

void user_renameFile(String srcFilePath,
                     String dstFilePath)
                     throws FileAlreadyExistException,
                            FileDoesNotExistException,
                            InvalidPathException,
                            org.apache.thrift.TException
Throws:
FileAlreadyExistException
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_unpinFile

void user_unpinFile(int fileId)
                    throws FileDoesNotExistException,
                           org.apache.thrift.TException
Throws:
FileDoesNotExistException
org.apache.thrift.TException

user_mkdir

int user_mkdir(String path)
               throws FileAlreadyExistException,
                      InvalidPathException,
                      org.apache.thrift.TException
Throws:
FileAlreadyExistException
InvalidPathException
org.apache.thrift.TException

user_createRawTable

int user_createRawTable(String path,
                        int columns,
                        ByteBuffer metadata)
                        throws FileAlreadyExistException,
                               InvalidPathException,
                               TableColumnException,
                               org.apache.thrift.TException
Throws:
FileAlreadyExistException
InvalidPathException
TableColumnException
org.apache.thrift.TException

user_getRawTableId

int user_getRawTableId(String path)
                       throws InvalidPathException,
                              org.apache.thrift.TException
Throws:
InvalidPathException
org.apache.thrift.TException

user_getClientRawTableInfoById

ClientRawTableInfo user_getClientRawTableInfoById(int tableId)
                                                  throws TableDoesNotExistException,
                                                         org.apache.thrift.TException
Throws:
TableDoesNotExistException
org.apache.thrift.TException

user_getClientRawTableInfoByPath

ClientRawTableInfo user_getClientRawTableInfoByPath(String tablePath)
                                                    throws TableDoesNotExistException,
                                                           InvalidPathException,
                                                           org.apache.thrift.TException
Throws:
TableDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_updateRawTableMetadata

void user_updateRawTableMetadata(int tableId,
                                 ByteBuffer metadata)
                                 throws TableDoesNotExistException,
                                        org.apache.thrift.TException
Throws:
TableDoesNotExistException
org.apache.thrift.TException

user_getNumberOfFiles

int user_getNumberOfFiles(String path)
                          throws FileDoesNotExistException,
                                 InvalidPathException,
                                 org.apache.thrift.TException
Throws:
FileDoesNotExistException
InvalidPathException
org.apache.thrift.TException

user_getUnderfsAddress

String user_getUnderfsAddress()
                              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

cmd_ls

List<ClientFileInfo> cmd_ls(String path)
                            throws InvalidPathException,
                                   FileDoesNotExistException,
                                   org.apache.thrift.TException
Throws:
InvalidPathException
FileDoesNotExistException
org.apache.thrift.TException


Copyright © 2013. All Rights Reserved.