Class: Storm::DistributedRPC::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/storm/thrift/distributed_rpc.rb

Instance Method Summary collapse

Instance Method Details

#process_execute(seqid, iprot, oprot) ⇒ Object



37
38
39
40
41
42
43
44
45
46
# File 'lib/storm/thrift/distributed_rpc.rb', line 37

def process_execute(seqid, iprot, oprot)
  args = read_args(iprot, Execute_args)
  result = Execute_result.new()
  begin
    result.success = @handler.execute(args.functionName, args.funcArgs)
  rescue DRPCExecutionException => e
    result.e = e
  end
  write_result(result, oprot, 'execute', seqid)
end