concord-ruby 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gen-rb/bolt_proxy_service.rb +22 -36
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7890f3eb6588b03d947fc0435b25b8085155c677
|
4
|
+
data.tar.gz: dfaa0a92b3be5a4b87962c1ebd9615473a740aa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9fba7afcbc4083501a7e28320af3b5196ffc67e5d9f1a5b479abbd18a0d06ae08846a0ef3767df750c674aa42b0e248fb3b0fc803ca66c7c2167527efe29e93
|
7
|
+
data.tar.gz: d16647e71f60a87013e6b758a290c6112b0cd2547ce7bd87a1fc72de7ef1983c64611c565e1473aa76f93333f43b48bf27da767e6e3d6f7d8344ea20889ae96f
|
@@ -61,21 +61,6 @@ module Concord
|
|
61
61
|
return
|
62
62
|
end
|
63
63
|
|
64
|
-
def registerWithScheduler(meta)
|
65
|
-
send_registerWithScheduler(meta)
|
66
|
-
recv_registerWithScheduler()
|
67
|
-
end
|
68
|
-
|
69
|
-
def send_registerWithScheduler(meta)
|
70
|
-
send_message('registerWithScheduler', RegisterWithScheduler_args, :meta => meta)
|
71
|
-
end
|
72
|
-
|
73
|
-
def recv_registerWithScheduler()
|
74
|
-
result = receive_message(RegisterWithScheduler_result)
|
75
|
-
raise result.e unless result.e.nil?
|
76
|
-
return
|
77
|
-
end
|
78
|
-
|
79
64
|
def updateSchedulerAddress(e)
|
80
65
|
send_updateSchedulerAddress(e)
|
81
66
|
recv_updateSchedulerAddress()
|
@@ -91,6 +76,13 @@ module Concord
|
|
91
76
|
return
|
92
77
|
end
|
93
78
|
|
79
|
+
def registerWithScheduler(meta)
|
80
|
+
send_registerWithScheduler(meta)
|
81
|
+
end
|
82
|
+
|
83
|
+
def send_registerWithScheduler(meta)
|
84
|
+
send_oneway_message('registerWithScheduler', RegisterWithScheduler_args, :meta => meta)
|
85
|
+
end
|
94
86
|
end
|
95
87
|
|
96
88
|
class Processor < ::Concord::Thrift::MutableEphemeralStateService::Processor
|
@@ -129,17 +121,6 @@ module Concord
|
|
129
121
|
write_result(result, oprot, 'dispatchRecords', seqid)
|
130
122
|
end
|
131
123
|
|
132
|
-
def process_registerWithScheduler(seqid, iprot, oprot)
|
133
|
-
args = read_args(iprot, RegisterWithScheduler_args)
|
134
|
-
result = RegisterWithScheduler_result.new()
|
135
|
-
begin
|
136
|
-
@handler.registerWithScheduler(args.meta)
|
137
|
-
rescue ::Concord::Thrift::BoltError => e
|
138
|
-
result.e = e
|
139
|
-
end
|
140
|
-
write_result(result, oprot, 'registerWithScheduler', seqid)
|
141
|
-
end
|
142
|
-
|
143
124
|
def process_updateSchedulerAddress(seqid, iprot, oprot)
|
144
125
|
args = read_args(iprot, UpdateSchedulerAddress_args)
|
145
126
|
result = UpdateSchedulerAddress_result.new()
|
@@ -151,6 +132,12 @@ module Concord
|
|
151
132
|
write_result(result, oprot, 'updateSchedulerAddress', seqid)
|
152
133
|
end
|
153
134
|
|
135
|
+
def process_registerWithScheduler(seqid, iprot, oprot)
|
136
|
+
args = read_args(iprot, RegisterWithScheduler_args)
|
137
|
+
@handler.registerWithScheduler(args.meta)
|
138
|
+
return
|
139
|
+
end
|
140
|
+
|
154
141
|
end
|
155
142
|
|
156
143
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -255,12 +242,12 @@ module Concord
|
|
255
242
|
::Thrift::Struct.generate_accessors self
|
256
243
|
end
|
257
244
|
|
258
|
-
class
|
245
|
+
class UpdateSchedulerAddress_args
|
259
246
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
260
|
-
|
247
|
+
E = 1
|
261
248
|
|
262
249
|
FIELDS = {
|
263
|
-
|
250
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Concord::Thrift::Endpoint}
|
264
251
|
}
|
265
252
|
|
266
253
|
def struct_fields; FIELDS; end
|
@@ -271,7 +258,7 @@ module Concord
|
|
271
258
|
::Thrift::Struct.generate_accessors self
|
272
259
|
end
|
273
260
|
|
274
|
-
class
|
261
|
+
class UpdateSchedulerAddress_result
|
275
262
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
276
263
|
E = 1
|
277
264
|
|
@@ -287,12 +274,12 @@ module Concord
|
|
287
274
|
::Thrift::Struct.generate_accessors self
|
288
275
|
end
|
289
276
|
|
290
|
-
class
|
277
|
+
class RegisterWithScheduler_args
|
291
278
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
292
|
-
|
279
|
+
META = 1
|
293
280
|
|
294
281
|
FIELDS = {
|
295
|
-
|
282
|
+
META => {:type => ::Thrift::Types::STRUCT, :name => 'meta', :class => ::Concord::Thrift::ComputationMetadata}
|
296
283
|
}
|
297
284
|
|
298
285
|
def struct_fields; FIELDS; end
|
@@ -303,12 +290,11 @@ module Concord
|
|
303
290
|
::Thrift::Struct.generate_accessors self
|
304
291
|
end
|
305
292
|
|
306
|
-
class
|
293
|
+
class RegisterWithScheduler_result
|
307
294
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
308
|
-
E = 1
|
309
295
|
|
310
296
|
FIELDS = {
|
311
|
-
|
297
|
+
|
312
298
|
}
|
313
299
|
|
314
300
|
def struct_fields; FIELDS; end
|