Class ReportingSrv.Client

java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.damsel.reports.ReportingSrv.Client
All Implemented Interfaces:
ReportingSrv.Iface
Enclosing class:
ReportingSrv

public static class ReportingSrv.Client extends org.apache.thrift.TServiceClient implements ReportingSrv.Iface
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields inherited from class org.apache.thrift.TServiceClient

    interceptor, iprot_, oprot_, seqid_
  • Constructor Summary

    Constructors
    Constructor
    Description
    Client(org.apache.thrift.protocol.TProtocol prot)
     
    Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelReport(String party_id, String shop_id, long report_id)
    Запрос на отмену отчета ReportNotFound, если отчет не найден
    generatePresignedUrl(String file_id, String expires_at)
    Сгенерировать ссылку на файл file_id - идентификатор файла expires_at - время до которого ссылка будет считаться действительной Возвращает presigned url FileNotFound, если файл не найден InvalidRequest, если expires_at некорректен
    long
    generateReport(ReportRequest request, ReportType report_type)
    Сгенерировать отчет с указанным типом по магазину за указанный промежуток времени Возвращает идентификатор отчета PartyNotFound, если party не найден ShopNotFound, если shop не найден InvalidRequest, если промежуток времени некорректен
    getReport(String party_id, String shop_id, long report_id)
    Запрос на получение отчета ReportNotFound, если отчет не найден
    getReports(ReportRequest request, List<ReportType> report_types)
    Получить список отчетов по магазину за указанный промежуток времени с фильтрацией по типу В случае если список report_types пустой, фильтрации по типу не будет Возвращает список отчетов или пустой список, если отчеты по магазину не найдены InvalidRequest, если промежуток времени некорректен DatasetTooBig, если размер списка превышает допустимый лимит
    void
     
     
    long
     
     
     
    void
    sendCancelReport(String party_id, String shop_id, long report_id)
     
    void
    sendGeneratePresignedUrl(String file_id, String expires_at)
     
    void
     
    void
    sendGetReport(String party_id, String shop_id, long report_id)
     
    void
    sendGetReports(ReportRequest request, List<ReportType> report_types)
     

    Methods inherited from class org.apache.thrift.TServiceClient

    getInputProtocol, getInterceptor, getOutputProtocol, receiveBase, sendBase, sendBaseOneway, setInterceptor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

    • getReports

      public List<Report> getReports(ReportRequest request, List<ReportType> report_types) throws DatasetTooBig, InvalidRequest, org.apache.thrift.TException
      Description copied from interface: ReportingSrv.Iface
      Получить список отчетов по магазину за указанный промежуток времени с фильтрацией по типу В случае если список report_types пустой, фильтрации по типу не будет Возвращает список отчетов или пустой список, если отчеты по магазину не найдены InvalidRequest, если промежуток времени некорректен DatasetTooBig, если размер списка превышает допустимый лимит
      Specified by:
      getReports in interface ReportingSrv.Iface
      Throws:
      DatasetTooBig
      InvalidRequest
      org.apache.thrift.TException
    • sendGetReports

      public void sendGetReports(ReportRequest request, List<ReportType> report_types) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGetReports

      public List<Report> recvGetReports() throws DatasetTooBig, InvalidRequest, org.apache.thrift.TException
      Throws:
      DatasetTooBig
      InvalidRequest
      org.apache.thrift.TException
    • generateReport

      public long generateReport(ReportRequest request, ReportType report_type) throws PartyNotFound, ShopNotFound, InvalidRequest, org.apache.thrift.TException
      Description copied from interface: ReportingSrv.Iface
      Сгенерировать отчет с указанным типом по магазину за указанный промежуток времени Возвращает идентификатор отчета PartyNotFound, если party не найден ShopNotFound, если shop не найден InvalidRequest, если промежуток времени некорректен
      Specified by:
      generateReport in interface ReportingSrv.Iface
      Throws:
      PartyNotFound
      ShopNotFound
      InvalidRequest
      org.apache.thrift.TException
    • sendGenerateReport

      public void sendGenerateReport(ReportRequest request, ReportType report_type) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGenerateReport

      public long recvGenerateReport() throws PartyNotFound, ShopNotFound, InvalidRequest, org.apache.thrift.TException
      Throws:
      PartyNotFound
      ShopNotFound
      InvalidRequest
      org.apache.thrift.TException
    • getReport

      public Report getReport(String party_id, String shop_id, long report_id) throws ReportNotFound, org.apache.thrift.TException
      Description copied from interface: ReportingSrv.Iface
      Запрос на получение отчета ReportNotFound, если отчет не найден
      Specified by:
      getReport in interface ReportingSrv.Iface
      Throws:
      ReportNotFound
      org.apache.thrift.TException
    • sendGetReport

      public void sendGetReport(String party_id, String shop_id, long report_id) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGetReport

      public Report recvGetReport() throws ReportNotFound, org.apache.thrift.TException
      Throws:
      ReportNotFound
      org.apache.thrift.TException
    • cancelReport

      public void cancelReport(String party_id, String shop_id, long report_id) throws ReportNotFound, org.apache.thrift.TException
      Description copied from interface: ReportingSrv.Iface
      Запрос на отмену отчета ReportNotFound, если отчет не найден
      Specified by:
      cancelReport in interface ReportingSrv.Iface
      Throws:
      ReportNotFound
      org.apache.thrift.TException
    • sendCancelReport

      public void sendCancelReport(String party_id, String shop_id, long report_id) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvCancelReport

      public void recvCancelReport() throws ReportNotFound, org.apache.thrift.TException
      Throws:
      ReportNotFound
      org.apache.thrift.TException
    • generatePresignedUrl

      public String generatePresignedUrl(String file_id, String expires_at) throws FileNotFound, InvalidRequest, org.apache.thrift.TException
      Description copied from interface: ReportingSrv.Iface
      Сгенерировать ссылку на файл file_id - идентификатор файла expires_at - время до которого ссылка будет считаться действительной Возвращает presigned url FileNotFound, если файл не найден InvalidRequest, если expires_at некорректен
      Specified by:
      generatePresignedUrl in interface ReportingSrv.Iface
      Throws:
      FileNotFound
      InvalidRequest
      org.apache.thrift.TException
    • sendGeneratePresignedUrl

      public void sendGeneratePresignedUrl(String file_id, String expires_at) throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException
    • recvGeneratePresignedUrl

      public String recvGeneratePresignedUrl() throws FileNotFound, InvalidRequest, org.apache.thrift.TException
      Throws:
      FileNotFound
      InvalidRequest
      org.apache.thrift.TException