Class: Concord::Thrift::ComputationService::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/gen-rb/computation_service.rb

Instance Method Summary collapse

Instance Method Details

#process_boltMetadata(seqid, iprot, oprot) ⇒ Object



144
145
146
147
148
149
150
151
152
153
# File 'lib/gen-rb/computation_service.rb', line 144

def (seqid, iprot, oprot)
  args = read_args(iprot, BoltMetadata_args)
  result = BoltMetadata_result.new()
  begin
    result.success = @handler.()
  rescue ::Concord::Thrift::BoltError => e
    result.e = e
  end
  write_result(result, oprot, 'boltMetadata', seqid)
end

#process_boltProcessRecords(seqid, iprot, oprot) ⇒ Object



122
123
124
125
126
127
128
129
130
131
# File 'lib/gen-rb/computation_service.rb', line 122

def process_boltProcessRecords(seqid, iprot, oprot)
  args = read_args(iprot, BoltProcessRecords_args)
  result = BoltProcessRecords_result.new()
  begin
    result.success = @handler.boltProcessRecords(args.records)
  rescue ::Concord::Thrift::BoltError => e
    result.e = e
  end
  write_result(result, oprot, 'boltProcessRecords', seqid)
end

#process_boltProcessTimer(seqid, iprot, oprot) ⇒ Object



133
134
135
136
137
138
139
140
141
142
# File 'lib/gen-rb/computation_service.rb', line 133

def process_boltProcessTimer(seqid, iprot, oprot)
  args = read_args(iprot, BoltProcessTimer_args)
  result = BoltProcessTimer_result.new()
  begin
    result.success = @handler.boltProcessTimer(args.key, args.time)
  rescue ::Concord::Thrift::BoltError => e
    result.e = e
  end
  write_result(result, oprot, 'boltProcessTimer', seqid)
end

#process_destroy(seqid, iprot, oprot) ⇒ Object



111
112
113
114
115
116
117
118
119
120
# File 'lib/gen-rb/computation_service.rb', line 111

def process_destroy(seqid, iprot, oprot)
  args = read_args(iprot, Destroy_args)
  result = Destroy_result.new()
  begin
    @handler.destroy()
  rescue ::Concord::Thrift::BoltError => e
    result.e = e
  end
  write_result(result, oprot, 'destroy', seqid)
end

#process_init(seqid, iprot, oprot) ⇒ Object



100
101
102
103
104
105
106
107
108
109
# File 'lib/gen-rb/computation_service.rb', line 100

def process_init(seqid, iprot, oprot)
  args = read_args(iprot, Init_args)
  result = Init_result.new()
  begin
    result.success = @handler.init()
  rescue ::Concord::Thrift::BoltError => e
    result.e = e
  end
  write_result(result, oprot, 'init', seqid)
end