Class FileStorageSrv.Client

java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.file.storage.FileStorageSrv.Client
All Implemented Interfaces:
FileStorageSrv.Iface
Enclosing class:
FileStorageSrv

public static class FileStorageSrv.Client
extends org.apache.thrift.TServiceClient
implements FileStorageSrv.Iface
  • Constructor Details

    • Client

      public Client​(org.apache.thrift.protocol.TProtocol prot)
    • Client

      public Client​(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
  • Method Details

    • createNewFile

      public NewFileResult createNewFile​(Map<String,​Value> metadata, String expires_at) throws org.apache.thrift.TException
      Specified by:
      createNewFile in interface FileStorageSrv.Iface
      Throws:
      org.apache.thrift.TException
    • sendCreateNewFile

      public void sendCreateNewFile​(Map<String,​Value> metadata, String expires_at) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvCreateNewFile

      public NewFileResult recvCreateNewFile() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • generateDownloadUrl

      public String generateDownloadUrl​(String file_data_id, String expires_at) throws FileNotFound, org.apache.thrift.TException
      Specified by:
      generateDownloadUrl in interface FileStorageSrv.Iface
      Throws:
      FileNotFound
      org.apache.thrift.TException
    • sendGenerateDownloadUrl

      public void sendGenerateDownloadUrl​(String file_data_id, String expires_at) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGenerateDownloadUrl

      public String recvGenerateDownloadUrl() throws FileNotFound, org.apache.thrift.TException
      Throws:
      FileNotFound
      org.apache.thrift.TException
    • getFileData

      public FileData getFileData​(String file_data_id) throws FileNotFound, org.apache.thrift.TException
      Specified by:
      getFileData in interface FileStorageSrv.Iface
      Throws:
      FileNotFound
      org.apache.thrift.TException
    • sendGetFileData

      public void sendGetFileData​(String file_data_id) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGetFileData

      public FileData recvGetFileData() throws FileNotFound, org.apache.thrift.TException
      Throws:
      FileNotFound
      org.apache.thrift.TException