storm 0.0.1

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.
@@ -0,0 +1,8 @@
1
+ #
2
+ # Autogenerated by Thrift
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'storm/thrift/storm_types'
8
+
@@ -0,0 +1,801 @@
1
+ #
2
+ # Autogenerated by Thrift
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ module Storm
8
+
9
+
10
+ class JavaObjectArg < ::Thrift::Union
11
+ include ::Thrift::Struct_Union
12
+ class << self
13
+ def int_arg(val)
14
+ JavaObjectArg.new(:int_arg, val)
15
+ end
16
+
17
+ def long_arg(val)
18
+ JavaObjectArg.new(:long_arg, val)
19
+ end
20
+
21
+ def string_arg(val)
22
+ JavaObjectArg.new(:string_arg, val)
23
+ end
24
+
25
+ def bool_arg(val)
26
+ JavaObjectArg.new(:bool_arg, val)
27
+ end
28
+
29
+ def binary_arg(val)
30
+ JavaObjectArg.new(:binary_arg, val)
31
+ end
32
+
33
+ def double_arg(val)
34
+ JavaObjectArg.new(:double_arg, val)
35
+ end
36
+ end
37
+
38
+ INT_ARG = 1
39
+ LONG_ARG = 2
40
+ STRING_ARG = 3
41
+ BOOL_ARG = 4
42
+ BINARY_ARG = 5
43
+ DOUBLE_ARG = 6
44
+
45
+ FIELDS = {
46
+ INT_ARG => {:type => ::Thrift::Types::I32, :name => 'int_arg'},
47
+ LONG_ARG => {:type => ::Thrift::Types::I64, :name => 'long_arg'},
48
+ STRING_ARG => {:type => ::Thrift::Types::STRING, :name => 'string_arg'},
49
+ BOOL_ARG => {:type => ::Thrift::Types::BOOL, :name => 'bool_arg'},
50
+ BINARY_ARG => {:type => ::Thrift::Types::STRING, :name => 'binary_arg', :binary => true},
51
+ DOUBLE_ARG => {:type => ::Thrift::Types::DOUBLE, :name => 'double_arg'}
52
+ }
53
+
54
+ def struct_fields; FIELDS; end
55
+
56
+ def validate
57
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
58
+ end
59
+
60
+ ::Thrift::Union.generate_accessors self
61
+ end
62
+
63
+ class JavaObject
64
+ include ::Thrift::Struct, ::Thrift::Struct_Union
65
+ FULL_CLASS_NAME = 1
66
+ ARGS_LIST = 2
67
+
68
+ FIELDS = {
69
+ FULL_CLASS_NAME => {:type => ::Thrift::Types::STRING, :name => 'full_class_name'},
70
+ ARGS_LIST => {:type => ::Thrift::Types::LIST, :name => 'args_list', :element => {:type => ::Thrift::Types::STRUCT, :class => JavaObjectArg}}
71
+ }
72
+
73
+ def struct_fields; FIELDS; end
74
+
75
+ def validate
76
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field full_class_name is unset!') unless @full_class_name
77
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field args_list is unset!') unless @args_list
78
+ end
79
+
80
+ ::Thrift::Struct.generate_accessors self
81
+ end
82
+
83
+ class NullStruct
84
+ include ::Thrift::Struct, ::Thrift::Struct_Union
85
+
86
+ FIELDS = {
87
+
88
+ }
89
+
90
+ def struct_fields; FIELDS; end
91
+
92
+ def validate
93
+ end
94
+
95
+ ::Thrift::Struct.generate_accessors self
96
+ end
97
+
98
+ class GlobalStreamId
99
+ include ::Thrift::Struct, ::Thrift::Struct_Union
100
+ COMPONENTID = 1
101
+ STREAMID = 2
102
+
103
+ FIELDS = {
104
+ COMPONENTID => {:type => ::Thrift::Types::STRING, :name => 'componentId'},
105
+ STREAMID => {:type => ::Thrift::Types::STRING, :name => 'streamId'}
106
+ }
107
+
108
+ def struct_fields; FIELDS; end
109
+
110
+ def validate
111
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field componentId is unset!') unless @componentId
112
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field streamId is unset!') unless @streamId
113
+ end
114
+
115
+ ::Thrift::Struct.generate_accessors self
116
+ end
117
+
118
+ class Grouping < ::Thrift::Union
119
+ include ::Thrift::Struct_Union
120
+ class << self
121
+ def fields(val)
122
+ Grouping.new(:fields, val)
123
+ end
124
+
125
+ def shuffle(val)
126
+ Grouping.new(:shuffle, val)
127
+ end
128
+
129
+ def all(val)
130
+ Grouping.new(:all, val)
131
+ end
132
+
133
+ def none(val)
134
+ Grouping.new(:none, val)
135
+ end
136
+
137
+ def direct(val)
138
+ Grouping.new(:direct, val)
139
+ end
140
+
141
+ def custom_object(val)
142
+ Grouping.new(:custom_object, val)
143
+ end
144
+
145
+ def custom_serialized(val)
146
+ Grouping.new(:custom_serialized, val)
147
+ end
148
+
149
+ def local_or_shuffle(val)
150
+ Grouping.new(:local_or_shuffle, val)
151
+ end
152
+ end
153
+
154
+ FIELDS = 1
155
+ SHUFFLE = 2
156
+ ALL = 3
157
+ NONE = 4
158
+ DIRECT = 5
159
+ CUSTOM_OBJECT = 6
160
+ CUSTOM_SERIALIZED = 7
161
+ LOCAL_OR_SHUFFLE = 8
162
+
163
+ FIELDS = {
164
+ FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRING}},
165
+ SHUFFLE => {:type => ::Thrift::Types::STRUCT, :name => 'shuffle', :class => NullStruct},
166
+ ALL => {:type => ::Thrift::Types::STRUCT, :name => 'all', :class => NullStruct},
167
+ NONE => {:type => ::Thrift::Types::STRUCT, :name => 'none', :class => NullStruct},
168
+ DIRECT => {:type => ::Thrift::Types::STRUCT, :name => 'direct', :class => NullStruct},
169
+ CUSTOM_OBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'custom_object', :class => JavaObject},
170
+ CUSTOM_SERIALIZED => {:type => ::Thrift::Types::STRING, :name => 'custom_serialized', :binary => true},
171
+ LOCAL_OR_SHUFFLE => {:type => ::Thrift::Types::STRUCT, :name => 'local_or_shuffle', :class => NullStruct}
172
+ }
173
+
174
+ def struct_fields; FIELDS; end
175
+
176
+ def validate
177
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
178
+ end
179
+
180
+ ::Thrift::Union.generate_accessors self
181
+ end
182
+
183
+ class StreamInfo
184
+ include ::Thrift::Struct, ::Thrift::Struct_Union
185
+ OUTPUT_FIELDS = 1
186
+ DIRECT = 2
187
+
188
+ FIELDS = {
189
+ OUTPUT_FIELDS => {:type => ::Thrift::Types::LIST, :name => 'output_fields', :element => {:type => ::Thrift::Types::STRING}},
190
+ DIRECT => {:type => ::Thrift::Types::BOOL, :name => 'direct'}
191
+ }
192
+
193
+ def struct_fields; FIELDS; end
194
+
195
+ def validate
196
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field output_fields is unset!') unless @output_fields
197
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field direct is unset!') if @direct.nil?
198
+ end
199
+
200
+ ::Thrift::Struct.generate_accessors self
201
+ end
202
+
203
+ class ShellComponent
204
+ include ::Thrift::Struct, ::Thrift::Struct_Union
205
+ EXECUTION_COMMAND = 1
206
+ SCRIPT = 2
207
+
208
+ FIELDS = {
209
+ EXECUTION_COMMAND => {:type => ::Thrift::Types::STRING, :name => 'execution_command'},
210
+ SCRIPT => {:type => ::Thrift::Types::STRING, :name => 'script'}
211
+ }
212
+
213
+ def struct_fields; FIELDS; end
214
+
215
+ def validate
216
+ end
217
+
218
+ ::Thrift::Struct.generate_accessors self
219
+ end
220
+
221
+ class ComponentObject < ::Thrift::Union
222
+ include ::Thrift::Struct_Union
223
+ class << self
224
+ def serialized_java(val)
225
+ ComponentObject.new(:serialized_java, val)
226
+ end
227
+
228
+ def shell(val)
229
+ ComponentObject.new(:shell, val)
230
+ end
231
+
232
+ def java_object(val)
233
+ ComponentObject.new(:java_object, val)
234
+ end
235
+ end
236
+
237
+ SERIALIZED_JAVA = 1
238
+ SHELL = 2
239
+ JAVA_OBJECT = 3
240
+
241
+ FIELDS = {
242
+ SERIALIZED_JAVA => {:type => ::Thrift::Types::STRING, :name => 'serialized_java', :binary => true},
243
+ SHELL => {:type => ::Thrift::Types::STRUCT, :name => 'shell', :class => ShellComponent},
244
+ JAVA_OBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'java_object', :class => JavaObject}
245
+ }
246
+
247
+ def struct_fields; FIELDS; end
248
+
249
+ def validate
250
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
251
+ end
252
+
253
+ ::Thrift::Union.generate_accessors self
254
+ end
255
+
256
+ class ComponentCommon
257
+ include ::Thrift::Struct, ::Thrift::Struct_Union
258
+ INPUTS = 1
259
+ STREAMS = 2
260
+ PARALLELISM_HINT = 3
261
+ JSON_CONF = 4
262
+
263
+ FIELDS = {
264
+ INPUTS => {:type => ::Thrift::Types::MAP, :name => 'inputs', :key => {:type => ::Thrift::Types::STRUCT, :class => GlobalStreamId}, :value => {:type => ::Thrift::Types::STRUCT, :class => Grouping}},
265
+ STREAMS => {:type => ::Thrift::Types::MAP, :name => 'streams', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => StreamInfo}},
266
+ PARALLELISM_HINT => {:type => ::Thrift::Types::I32, :name => 'parallelism_hint', :optional => true},
267
+ JSON_CONF => {:type => ::Thrift::Types::STRING, :name => 'json_conf', :optional => true}
268
+ }
269
+
270
+ def struct_fields; FIELDS; end
271
+
272
+ def validate
273
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field inputs is unset!') unless @inputs
274
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field streams is unset!') unless @streams
275
+ end
276
+
277
+ ::Thrift::Struct.generate_accessors self
278
+ end
279
+
280
+ class SpoutSpec
281
+ include ::Thrift::Struct, ::Thrift::Struct_Union
282
+ SPOUT_OBJECT = 1
283
+ COMMON = 2
284
+
285
+ FIELDS = {
286
+ SPOUT_OBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'spout_object', :class => ComponentObject},
287
+ COMMON => {:type => ::Thrift::Types::STRUCT, :name => 'common', :class => ComponentCommon}
288
+ }
289
+
290
+ def struct_fields; FIELDS; end
291
+
292
+ def validate
293
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field spout_object is unset!') unless @spout_object
294
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field common is unset!') unless @common
295
+ end
296
+
297
+ ::Thrift::Struct.generate_accessors self
298
+ end
299
+
300
+ class Bolt
301
+ include ::Thrift::Struct, ::Thrift::Struct_Union
302
+ BOLT_OBJECT = 1
303
+ COMMON = 2
304
+
305
+ FIELDS = {
306
+ BOLT_OBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'bolt_object', :class => ComponentObject},
307
+ COMMON => {:type => ::Thrift::Types::STRUCT, :name => 'common', :class => ComponentCommon}
308
+ }
309
+
310
+ def struct_fields; FIELDS; end
311
+
312
+ def validate
313
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bolt_object is unset!') unless @bolt_object
314
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field common is unset!') unless @common
315
+ end
316
+
317
+ ::Thrift::Struct.generate_accessors self
318
+ end
319
+
320
+ class StateSpoutSpec
321
+ include ::Thrift::Struct, ::Thrift::Struct_Union
322
+ STATE_SPOUT_OBJECT = 1
323
+ COMMON = 2
324
+
325
+ FIELDS = {
326
+ STATE_SPOUT_OBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'state_spout_object', :class => ComponentObject},
327
+ COMMON => {:type => ::Thrift::Types::STRUCT, :name => 'common', :class => ComponentCommon}
328
+ }
329
+
330
+ def struct_fields; FIELDS; end
331
+
332
+ def validate
333
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state_spout_object is unset!') unless @state_spout_object
334
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field common is unset!') unless @common
335
+ end
336
+
337
+ ::Thrift::Struct.generate_accessors self
338
+ end
339
+
340
+ class StormTopology
341
+ include ::Thrift::Struct, ::Thrift::Struct_Union
342
+ SPOUTS = 1
343
+ BOLTS = 2
344
+ STATE_SPOUTS = 3
345
+
346
+ FIELDS = {
347
+ SPOUTS => {:type => ::Thrift::Types::MAP, :name => 'spouts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => SpoutSpec}},
348
+ BOLTS => {:type => ::Thrift::Types::MAP, :name => 'bolts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => Bolt}},
349
+ STATE_SPOUTS => {:type => ::Thrift::Types::MAP, :name => 'state_spouts', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => StateSpoutSpec}}
350
+ }
351
+
352
+ def struct_fields; FIELDS; end
353
+
354
+ def validate
355
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field spouts is unset!') unless @spouts
356
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bolts is unset!') unless @bolts
357
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field state_spouts is unset!') unless @state_spouts
358
+ end
359
+
360
+ ::Thrift::Struct.generate_accessors self
361
+ end
362
+
363
+ class AlreadyAliveException < ::Thrift::Exception
364
+ include ::Thrift::Struct, ::Thrift::Struct_Union
365
+ def initialize(message=nil)
366
+ super()
367
+ self.msg = message
368
+ end
369
+
370
+ def message; msg end
371
+
372
+ MSG = 1
373
+
374
+ FIELDS = {
375
+ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg'}
376
+ }
377
+
378
+ def struct_fields; FIELDS; end
379
+
380
+ def validate
381
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg
382
+ end
383
+
384
+ ::Thrift::Struct.generate_accessors self
385
+ end
386
+
387
+ class NotAliveException < ::Thrift::Exception
388
+ include ::Thrift::Struct, ::Thrift::Struct_Union
389
+ def initialize(message=nil)
390
+ super()
391
+ self.msg = message
392
+ end
393
+
394
+ def message; msg end
395
+
396
+ MSG = 1
397
+
398
+ FIELDS = {
399
+ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg'}
400
+ }
401
+
402
+ def struct_fields; FIELDS; end
403
+
404
+ def validate
405
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg
406
+ end
407
+
408
+ ::Thrift::Struct.generate_accessors self
409
+ end
410
+
411
+ class InvalidTopologyException < ::Thrift::Exception
412
+ include ::Thrift::Struct, ::Thrift::Struct_Union
413
+ def initialize(message=nil)
414
+ super()
415
+ self.msg = message
416
+ end
417
+
418
+ def message; msg end
419
+
420
+ MSG = 1
421
+
422
+ FIELDS = {
423
+ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg'}
424
+ }
425
+
426
+ def struct_fields; FIELDS; end
427
+
428
+ def validate
429
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg
430
+ end
431
+
432
+ ::Thrift::Struct.generate_accessors self
433
+ end
434
+
435
+ class TopologySummary
436
+ include ::Thrift::Struct, ::Thrift::Struct_Union
437
+ ID = 1
438
+ NAME = 2
439
+ NUM_TASKS = 3
440
+ NUM_EXECUTORS = 4
441
+ NUM_WORKERS = 5
442
+ UPTIME_SECS = 6
443
+ STATUS = 7
444
+
445
+ FIELDS = {
446
+ ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
447
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
448
+ NUM_TASKS => {:type => ::Thrift::Types::I32, :name => 'num_tasks'},
449
+ NUM_EXECUTORS => {:type => ::Thrift::Types::I32, :name => 'num_executors'},
450
+ NUM_WORKERS => {:type => ::Thrift::Types::I32, :name => 'num_workers'},
451
+ UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'},
452
+ STATUS => {:type => ::Thrift::Types::STRING, :name => 'status'}
453
+ }
454
+
455
+ def struct_fields; FIELDS; end
456
+
457
+ def validate
458
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
459
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
460
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_tasks is unset!') unless @num_tasks
461
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_executors is unset!') unless @num_executors
462
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_workers is unset!') unless @num_workers
463
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uptime_secs is unset!') unless @uptime_secs
464
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
465
+ end
466
+
467
+ ::Thrift::Struct.generate_accessors self
468
+ end
469
+
470
+ class SupervisorSummary
471
+ include ::Thrift::Struct, ::Thrift::Struct_Union
472
+ HOST = 1
473
+ UPTIME_SECS = 2
474
+ NUM_WORKERS = 3
475
+ NUM_USED_WORKERS = 4
476
+
477
+ FIELDS = {
478
+ HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
479
+ UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'},
480
+ NUM_WORKERS => {:type => ::Thrift::Types::I32, :name => 'num_workers'},
481
+ NUM_USED_WORKERS => {:type => ::Thrift::Types::I32, :name => 'num_used_workers'}
482
+ }
483
+
484
+ def struct_fields; FIELDS; end
485
+
486
+ def validate
487
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field host is unset!') unless @host
488
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uptime_secs is unset!') unless @uptime_secs
489
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_workers is unset!') unless @num_workers
490
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_used_workers is unset!') unless @num_used_workers
491
+ end
492
+
493
+ ::Thrift::Struct.generate_accessors self
494
+ end
495
+
496
+ class ClusterSummary
497
+ include ::Thrift::Struct, ::Thrift::Struct_Union
498
+ SUPERVISORS = 1
499
+ NIMBUS_UPTIME_SECS = 2
500
+ TOPOLOGIES = 3
501
+
502
+ FIELDS = {
503
+ SUPERVISORS => {:type => ::Thrift::Types::LIST, :name => 'supervisors', :element => {:type => ::Thrift::Types::STRUCT, :class => SupervisorSummary}},
504
+ NIMBUS_UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'nimbus_uptime_secs'},
505
+ TOPOLOGIES => {:type => ::Thrift::Types::LIST, :name => 'topologies', :element => {:type => ::Thrift::Types::STRUCT, :class => TopologySummary}}
506
+ }
507
+
508
+ def struct_fields; FIELDS; end
509
+
510
+ def validate
511
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supervisors is unset!') unless @supervisors
512
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nimbus_uptime_secs is unset!') unless @nimbus_uptime_secs
513
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field topologies is unset!') unless @topologies
514
+ end
515
+
516
+ ::Thrift::Struct.generate_accessors self
517
+ end
518
+
519
+ class ErrorInfo
520
+ include ::Thrift::Struct, ::Thrift::Struct_Union
521
+ ERROR = 1
522
+ ERROR_TIME_SECS = 2
523
+
524
+ FIELDS = {
525
+ ERROR => {:type => ::Thrift::Types::STRING, :name => 'error'},
526
+ ERROR_TIME_SECS => {:type => ::Thrift::Types::I32, :name => 'error_time_secs'}
527
+ }
528
+
529
+ def struct_fields; FIELDS; end
530
+
531
+ def validate
532
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error is unset!') unless @error
533
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field error_time_secs is unset!') unless @error_time_secs
534
+ end
535
+
536
+ ::Thrift::Struct.generate_accessors self
537
+ end
538
+
539
+ class BoltStats
540
+ include ::Thrift::Struct, ::Thrift::Struct_Union
541
+ ACKED = 1
542
+ FAILED = 2
543
+ PROCESS_MS_AVG = 3
544
+
545
+ FIELDS = {
546
+ ACKED => {:type => ::Thrift::Types::MAP, :name => 'acked', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRUCT, :class => GlobalStreamId}, :value => {:type => ::Thrift::Types::I64}}},
547
+ FAILED => {:type => ::Thrift::Types::MAP, :name => 'failed', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRUCT, :class => GlobalStreamId}, :value => {:type => ::Thrift::Types::I64}}},
548
+ PROCESS_MS_AVG => {:type => ::Thrift::Types::MAP, :name => 'process_ms_avg', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRUCT, :class => GlobalStreamId}, :value => {:type => ::Thrift::Types::DOUBLE}}}
549
+ }
550
+
551
+ def struct_fields; FIELDS; end
552
+
553
+ def validate
554
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field acked is unset!') unless @acked
555
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field failed is unset!') unless @failed
556
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field process_ms_avg is unset!') unless @process_ms_avg
557
+ end
558
+
559
+ ::Thrift::Struct.generate_accessors self
560
+ end
561
+
562
+ class SpoutStats
563
+ include ::Thrift::Struct, ::Thrift::Struct_Union
564
+ ACKED = 1
565
+ FAILED = 2
566
+ COMPLETE_MS_AVG = 3
567
+
568
+ FIELDS = {
569
+ ACKED => {:type => ::Thrift::Types::MAP, :name => 'acked', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}},
570
+ FAILED => {:type => ::Thrift::Types::MAP, :name => 'failed', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}},
571
+ COMPLETE_MS_AVG => {:type => ::Thrift::Types::MAP, :name => 'complete_ms_avg', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::DOUBLE}}}
572
+ }
573
+
574
+ def struct_fields; FIELDS; end
575
+
576
+ def validate
577
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field acked is unset!') unless @acked
578
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field failed is unset!') unless @failed
579
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field complete_ms_avg is unset!') unless @complete_ms_avg
580
+ end
581
+
582
+ ::Thrift::Struct.generate_accessors self
583
+ end
584
+
585
+ class ExecutorSpecificStats < ::Thrift::Union
586
+ include ::Thrift::Struct_Union
587
+ class << self
588
+ def bolt(val)
589
+ ExecutorSpecificStats.new(:bolt, val)
590
+ end
591
+
592
+ def spout(val)
593
+ ExecutorSpecificStats.new(:spout, val)
594
+ end
595
+ end
596
+
597
+ BOLT = 1
598
+ SPOUT = 2
599
+
600
+ FIELDS = {
601
+ BOLT => {:type => ::Thrift::Types::STRUCT, :name => 'bolt', :class => BoltStats},
602
+ SPOUT => {:type => ::Thrift::Types::STRUCT, :name => 'spout', :class => SpoutStats}
603
+ }
604
+
605
+ def struct_fields; FIELDS; end
606
+
607
+ def validate
608
+ raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil?
609
+ end
610
+
611
+ ::Thrift::Union.generate_accessors self
612
+ end
613
+
614
+ class ExecutorStats
615
+ include ::Thrift::Struct, ::Thrift::Struct_Union
616
+ EMITTED = 1
617
+ TRANSFERRED = 2
618
+ SPECIFIC = 3
619
+
620
+ FIELDS = {
621
+ EMITTED => {:type => ::Thrift::Types::MAP, :name => 'emitted', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}},
622
+ TRANSFERRED => {:type => ::Thrift::Types::MAP, :name => 'transferred', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}},
623
+ SPECIFIC => {:type => ::Thrift::Types::STRUCT, :name => 'specific', :class => ExecutorSpecificStats}
624
+ }
625
+
626
+ def struct_fields; FIELDS; end
627
+
628
+ def validate
629
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field emitted is unset!') unless @emitted
630
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field transferred is unset!') unless @transferred
631
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field specific is unset!') unless @specific
632
+ end
633
+
634
+ ::Thrift::Struct.generate_accessors self
635
+ end
636
+
637
+ class ExecutorInfo
638
+ include ::Thrift::Struct, ::Thrift::Struct_Union
639
+ TASK_START = 1
640
+ TASK_END = 2
641
+
642
+ FIELDS = {
643
+ TASK_START => {:type => ::Thrift::Types::I32, :name => 'task_start'},
644
+ TASK_END => {:type => ::Thrift::Types::I32, :name => 'task_end'}
645
+ }
646
+
647
+ def struct_fields; FIELDS; end
648
+
649
+ def validate
650
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field task_start is unset!') unless @task_start
651
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field task_end is unset!') unless @task_end
652
+ end
653
+
654
+ ::Thrift::Struct.generate_accessors self
655
+ end
656
+
657
+ class ExecutorSummary
658
+ include ::Thrift::Struct, ::Thrift::Struct_Union
659
+ EXECUTOR_INFO = 1
660
+ COMPONENT_ID = 2
661
+ HOST = 3
662
+ PORT = 4
663
+ UPTIME_SECS = 5
664
+ STATS = 7
665
+
666
+ FIELDS = {
667
+ EXECUTOR_INFO => {:type => ::Thrift::Types::STRUCT, :name => 'executor_info', :class => ExecutorInfo},
668
+ COMPONENT_ID => {:type => ::Thrift::Types::STRING, :name => 'component_id'},
669
+ HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
670
+ PORT => {:type => ::Thrift::Types::I32, :name => 'port'},
671
+ UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'},
672
+ STATS => {:type => ::Thrift::Types::STRUCT, :name => 'stats', :class => ExecutorStats, :optional => true}
673
+ }
674
+
675
+ def struct_fields; FIELDS; end
676
+
677
+ def validate
678
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executor_info is unset!') unless @executor_info
679
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field component_id is unset!') unless @component_id
680
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field host is unset!') unless @host
681
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field port is unset!') unless @port
682
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uptime_secs is unset!') unless @uptime_secs
683
+ end
684
+
685
+ ::Thrift::Struct.generate_accessors self
686
+ end
687
+
688
+ class TopologyInfo
689
+ include ::Thrift::Struct, ::Thrift::Struct_Union
690
+ ID = 1
691
+ NAME = 2
692
+ UPTIME_SECS = 3
693
+ EXECUTORS = 4
694
+ STATUS = 5
695
+ ERRORS = 6
696
+
697
+ FIELDS = {
698
+ ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
699
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
700
+ UPTIME_SECS => {:type => ::Thrift::Types::I32, :name => 'uptime_secs'},
701
+ EXECUTORS => {:type => ::Thrift::Types::LIST, :name => 'executors', :element => {:type => ::Thrift::Types::STRUCT, :class => ExecutorSummary}},
702
+ STATUS => {:type => ::Thrift::Types::STRING, :name => 'status'},
703
+ ERRORS => {:type => ::Thrift::Types::MAP, :name => 'errors', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ErrorInfo}}}
704
+ }
705
+
706
+ def struct_fields; FIELDS; end
707
+
708
+ def validate
709
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
710
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
711
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uptime_secs is unset!') unless @uptime_secs
712
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executors is unset!') unless @executors
713
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status is unset!') unless @status
714
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errors is unset!') unless @errors
715
+ end
716
+
717
+ ::Thrift::Struct.generate_accessors self
718
+ end
719
+
720
+ class KillOptions
721
+ include ::Thrift::Struct, ::Thrift::Struct_Union
722
+ WAIT_SECS = 1
723
+
724
+ FIELDS = {
725
+ WAIT_SECS => {:type => ::Thrift::Types::I32, :name => 'wait_secs', :optional => true}
726
+ }
727
+
728
+ def struct_fields; FIELDS; end
729
+
730
+ def validate
731
+ end
732
+
733
+ ::Thrift::Struct.generate_accessors self
734
+ end
735
+
736
+ class RebalanceOptions
737
+ include ::Thrift::Struct, ::Thrift::Struct_Union
738
+ WAIT_SECS = 1
739
+ NUM_WORKERS = 2
740
+ NUM_EXECUTORS = 3
741
+
742
+ FIELDS = {
743
+ WAIT_SECS => {:type => ::Thrift::Types::I32, :name => 'wait_secs', :optional => true},
744
+ NUM_WORKERS => {:type => ::Thrift::Types::I32, :name => 'num_workers', :optional => true},
745
+ NUM_EXECUTORS => {:type => ::Thrift::Types::MAP, :name => 'num_executors', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}, :optional => true}
746
+ }
747
+
748
+ def struct_fields; FIELDS; end
749
+
750
+ def validate
751
+ end
752
+
753
+ ::Thrift::Struct.generate_accessors self
754
+ end
755
+
756
+ class DRPCRequest
757
+ include ::Thrift::Struct, ::Thrift::Struct_Union
758
+ FUNC_ARGS = 1
759
+ REQUEST_ID = 2
760
+
761
+ FIELDS = {
762
+ FUNC_ARGS => {:type => ::Thrift::Types::STRING, :name => 'func_args'},
763
+ REQUEST_ID => {:type => ::Thrift::Types::STRING, :name => 'request_id'}
764
+ }
765
+
766
+ def struct_fields; FIELDS; end
767
+
768
+ def validate
769
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field func_args is unset!') unless @func_args
770
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field request_id is unset!') unless @request_id
771
+ end
772
+
773
+ ::Thrift::Struct.generate_accessors self
774
+ end
775
+
776
+ class DRPCExecutionException < ::Thrift::Exception
777
+ include ::Thrift::Struct, ::Thrift::Struct_Union
778
+ def initialize(message=nil)
779
+ super()
780
+ self.msg = message
781
+ end
782
+
783
+ def message; msg end
784
+
785
+ MSG = 1
786
+
787
+ FIELDS = {
788
+ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg'}
789
+ }
790
+
791
+ def struct_fields; FIELDS; end
792
+
793
+ def validate
794
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field msg is unset!') unless @msg
795
+ end
796
+
797
+ ::Thrift::Struct.generate_accessors self
798
+ end
799
+
800
+
801
+ end