tachyon.thrift
Interface WorkerService.Iface

All Known Implementing Classes:
WorkerService.Client, WorkerServiceHandler
Enclosing class:
WorkerService

public static interface WorkerService.Iface


Method Summary
 void accessFile(int fileId)
           
 void addCheckpoint(long userId, int fileId)
           
 void cacheFile(long userId, int fileId)
           
 String getDataFolder()
           
 String getUserTempFolder(long userId)
           
 String getUserUnderfsTempFolder(long userId)
           
 void lockFile(int fileId, long userId)
           
 boolean requestSpace(long userId, long requestBytes)
           
 void returnSpace(long userId, long returnedBytes)
           
 void unlockFile(int fileId, long userId)
           
 void userHeartbeat(long userId)
           
 

Method Detail

accessFile

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

addCheckpoint

void addCheckpoint(long userId,
                   int fileId)
                   throws FileDoesNotExistException,
                          SuspectedFileSizeException,
                          FailedToCheckpointException,
                          org.apache.thrift.TException
Throws:
FileDoesNotExistException
SuspectedFileSizeException
FailedToCheckpointException
org.apache.thrift.TException

cacheFile

void cacheFile(long userId,
               int fileId)
               throws FileDoesNotExistException,
                      SuspectedFileSizeException,
                      org.apache.thrift.TException
Throws:
FileDoesNotExistException
SuspectedFileSizeException
org.apache.thrift.TException

getDataFolder

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

getUserTempFolder

String getUserTempFolder(long userId)
                         throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

getUserUnderfsTempFolder

String getUserUnderfsTempFolder(long userId)
                                throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

lockFile

void lockFile(int fileId,
              long userId)
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

returnSpace

void returnSpace(long userId,
                 long returnedBytes)
                 throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

requestSpace

boolean requestSpace(long userId,
                     long requestBytes)
                     throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

unlockFile

void unlockFile(int fileId,
                long userId)
                throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException

userHeartbeat

void userHeartbeat(long userId)
                   throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013. All Rights Reserved.