Class: ThriftFlumeReportServer::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/thrift/thrift_flume_report_server.rb

Instance Method Summary collapse

Instance Method Details

#getAllReportsObject



14
15
16
17
# File 'lib/thrift/thrift_flume_report_server.rb', line 14

def getAllReports()
  send_getAllReports()
  return recv_getAllReports()
end

#getReportByName(reportName) ⇒ Object



29
30
31
32
# File 'lib/thrift/thrift_flume_report_server.rb', line 29

def getReportByName(reportName)
  send_getReportByName(reportName)
  return recv_getReportByName()
end

#recv_getAllReportsObject

Raises:

  • (::Thrift::ApplicationException)


23
24
25
26
27
# File 'lib/thrift/thrift_flume_report_server.rb', line 23

def recv_getAllReports()
  result = receive_message(GetAllReports_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAllReports failed: unknown result')
end

#recv_getReportByNameObject

Raises:

  • (::Thrift::ApplicationException)


38
39
40
41
42
# File 'lib/thrift/thrift_flume_report_server.rb', line 38

def recv_getReportByName()
  result = receive_message(GetReportByName_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getReportByName failed: unknown result')
end

#send_getAllReportsObject



19
20
21
# File 'lib/thrift/thrift_flume_report_server.rb', line 19

def send_getAllReports()
  send_message('getAllReports', GetAllReports_args)
end

#send_getReportByName(reportName) ⇒ Object



34
35
36
# File 'lib/thrift/thrift_flume_report_server.rb', line 34

def send_getReportByName(reportName)
  send_message('getReportByName', GetReportByName_args, :reportName => reportName)
end