Class: ThriftFlumeEventServer::Client
- Inherits:
-
Object
- Object
- ThriftFlumeEventServer::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/fluent/plugin/thrift/thrift_flume_event_server.rb
Instance Method Summary collapse
- #ackedAppend(evt) ⇒ Object
- #append(evt) ⇒ Object
- #close ⇒ Object
- #rawAppend(evt) ⇒ Object
- #recv_ackedAppend ⇒ Object
- #recv_close ⇒ Object
- #send_ackedAppend(evt) ⇒ Object
- #send_append(evt) ⇒ Object
- #send_close ⇒ Object
- #send_rawAppend(evt) ⇒ Object
Instance Method Details
#ackedAppend(evt) ⇒ Object
28 29 30 31 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 28 def ackedAppend(evt) send_ackedAppend(evt) return recv_ackedAppend() end |
#append(evt) ⇒ Object
14 15 16 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 14 def append(evt) send_append(evt) end |
#close ⇒ Object
43 44 45 46 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 43 def close() send_close() recv_close() end |
#rawAppend(evt) ⇒ Object
21 22 23 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 21 def rawAppend(evt) send_rawAppend(evt) end |
#recv_ackedAppend ⇒ Object
37 38 39 40 41 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 37 def recv_ackedAppend() result = (AckedAppend_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ackedAppend failed: unknown result') end |
#recv_close ⇒ Object
52 53 54 55 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 52 def recv_close() result = (Close_result) return end |
#send_ackedAppend(evt) ⇒ Object
33 34 35 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 33 def send_ackedAppend(evt) ('ackedAppend', AckedAppend_args, :evt => evt) end |
#send_append(evt) ⇒ Object
18 19 20 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 18 def send_append(evt) ('append', Append_args, :evt => evt) end |
#send_close ⇒ Object
48 49 50 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 48 def send_close() ('close', Close_args) end |
#send_rawAppend(evt) ⇒ Object
25 26 27 |
# File 'lib/fluent/plugin/thrift/thrift_flume_event_server.rb', line 25 def send_rawAppend(evt) ('rawAppend', RawAppend_args, :evt => evt) end |