Class: ThriftSourceProtocol::Processor
- Inherits:
-
Object
- Object
- ThriftSourceProtocol::Processor
- Includes:
- Thrift::Processor
- Defined in:
- lib/flume-logger/flume-ng/thrift_source_protocol.rb
Instance Method Summary collapse
Instance Method Details
#process_append(seqid, iprot, oprot) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/flume-logger/flume-ng/thrift_source_protocol.rb', line 49 def process_append(seqid, iprot, oprot) args = read_args(iprot, Append_args) result = Append_result.new() result.success = @handler.append(args.event) write_result(result, oprot, 'append', seqid) end |
#process_appendBatch(seqid, iprot, oprot) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/flume-logger/flume-ng/thrift_source_protocol.rb', line 56 def process_appendBatch(seqid, iprot, oprot) args = read_args(iprot, AppendBatch_args) result = AppendBatch_result.new() result.success = @handler.appendBatch(args.events) write_result(result, oprot, 'appendBatch', seqid) end |