concord-ruby 0.0.4
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 +7 -0
- data/lib/concord.rb +201 -0
- data/lib/concord/utils.rb +13 -0
- data/lib/gen-rb/bolt_constants.rb +47 -0
- data/lib/gen-rb/bolt_manager_service.rb +151 -0
- data/lib/gen-rb/bolt_metrics_service.rb +268 -0
- data/lib/gen-rb/bolt_proxy_service.rb +325 -0
- data/lib/gen-rb/bolt_scheduler_service.rb +323 -0
- data/lib/gen-rb/bolt_trace_aggregator_service.rb +268 -0
- data/lib/gen-rb/bolt_types.rb +456 -0
- data/lib/gen-rb/computation_service.rb +272 -0
- data/lib/gen-rb/mutable_ephemeral_state_service.rb +149 -0
- metadata +84 -0
@@ -0,0 +1,268 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.2)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'bolt_types'
|
9
|
+
|
10
|
+
module Concord
|
11
|
+
module Thrift
|
12
|
+
module BoltTraceAggregatorService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def submitSpans(span)
|
17
|
+
send_submitSpans(span)
|
18
|
+
recv_submitSpans()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_submitSpans(span)
|
22
|
+
send_message('submitSpans', SubmitSpans_args, :span => span)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_submitSpans()
|
26
|
+
result = receive_message(SubmitSpans_result)
|
27
|
+
raise result.e unless result.e.nil?
|
28
|
+
return
|
29
|
+
end
|
30
|
+
|
31
|
+
def getTrace(traceId)
|
32
|
+
send_getTrace(traceId)
|
33
|
+
return recv_getTrace()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_getTrace(traceId)
|
37
|
+
send_message('getTrace', GetTrace_args, :traceId => traceId)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_getTrace()
|
41
|
+
result = receive_message(GetTrace_result)
|
42
|
+
return result.success unless result.success.nil?
|
43
|
+
raise result.e unless result.e.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTrace failed: unknown result')
|
45
|
+
end
|
46
|
+
|
47
|
+
def getTraceIds(startId, limit)
|
48
|
+
send_getTraceIds(startId, limit)
|
49
|
+
return recv_getTraceIds()
|
50
|
+
end
|
51
|
+
|
52
|
+
def send_getTraceIds(startId, limit)
|
53
|
+
send_message('getTraceIds', GetTraceIds_args, :startId => startId, :limit => limit)
|
54
|
+
end
|
55
|
+
|
56
|
+
def recv_getTraceIds()
|
57
|
+
result = receive_message(GetTraceIds_result)
|
58
|
+
return result.success unless result.success.nil?
|
59
|
+
raise result.e unless result.e.nil?
|
60
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceIds failed: unknown result')
|
61
|
+
end
|
62
|
+
|
63
|
+
def consolidateTraceIds(traceIds)
|
64
|
+
send_consolidateTraceIds(traceIds)
|
65
|
+
recv_consolidateTraceIds()
|
66
|
+
end
|
67
|
+
|
68
|
+
def send_consolidateTraceIds(traceIds)
|
69
|
+
send_message('consolidateTraceIds', ConsolidateTraceIds_args, :traceIds => traceIds)
|
70
|
+
end
|
71
|
+
|
72
|
+
def recv_consolidateTraceIds()
|
73
|
+
result = receive_message(ConsolidateTraceIds_result)
|
74
|
+
raise result.e unless result.e.nil?
|
75
|
+
return
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
class Processor
|
81
|
+
include ::Thrift::Processor
|
82
|
+
|
83
|
+
def process_submitSpans(seqid, iprot, oprot)
|
84
|
+
args = read_args(iprot, SubmitSpans_args)
|
85
|
+
result = SubmitSpans_result.new()
|
86
|
+
begin
|
87
|
+
@handler.submitSpans(args.span)
|
88
|
+
rescue ::Concord::Thrift::BoltError => e
|
89
|
+
result.e = e
|
90
|
+
end
|
91
|
+
write_result(result, oprot, 'submitSpans', seqid)
|
92
|
+
end
|
93
|
+
|
94
|
+
def process_getTrace(seqid, iprot, oprot)
|
95
|
+
args = read_args(iprot, GetTrace_args)
|
96
|
+
result = GetTrace_result.new()
|
97
|
+
begin
|
98
|
+
result.success = @handler.getTrace(args.traceId)
|
99
|
+
rescue ::Concord::Thrift::BoltError => e
|
100
|
+
result.e = e
|
101
|
+
end
|
102
|
+
write_result(result, oprot, 'getTrace', seqid)
|
103
|
+
end
|
104
|
+
|
105
|
+
def process_getTraceIds(seqid, iprot, oprot)
|
106
|
+
args = read_args(iprot, GetTraceIds_args)
|
107
|
+
result = GetTraceIds_result.new()
|
108
|
+
begin
|
109
|
+
result.success = @handler.getTraceIds(args.startId, args.limit)
|
110
|
+
rescue ::Concord::Thrift::BoltError => e
|
111
|
+
result.e = e
|
112
|
+
end
|
113
|
+
write_result(result, oprot, 'getTraceIds', seqid)
|
114
|
+
end
|
115
|
+
|
116
|
+
def process_consolidateTraceIds(seqid, iprot, oprot)
|
117
|
+
args = read_args(iprot, ConsolidateTraceIds_args)
|
118
|
+
result = ConsolidateTraceIds_result.new()
|
119
|
+
begin
|
120
|
+
@handler.consolidateTraceIds(args.traceIds)
|
121
|
+
rescue ::Concord::Thrift::BoltError => e
|
122
|
+
result.e = e
|
123
|
+
end
|
124
|
+
write_result(result, oprot, 'consolidateTraceIds', seqid)
|
125
|
+
end
|
126
|
+
|
127
|
+
end
|
128
|
+
|
129
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
130
|
+
|
131
|
+
class SubmitSpans_args
|
132
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
133
|
+
SPAN = 1
|
134
|
+
|
135
|
+
FIELDS = {
|
136
|
+
SPAN => {:type => ::Thrift::Types::LIST, :name => 'span', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::Span}}
|
137
|
+
}
|
138
|
+
|
139
|
+
def struct_fields; FIELDS; end
|
140
|
+
|
141
|
+
def validate
|
142
|
+
end
|
143
|
+
|
144
|
+
::Thrift::Struct.generate_accessors self
|
145
|
+
end
|
146
|
+
|
147
|
+
class SubmitSpans_result
|
148
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
149
|
+
E = 1
|
150
|
+
|
151
|
+
FIELDS = {
|
152
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Concord::Thrift::BoltError}
|
153
|
+
}
|
154
|
+
|
155
|
+
def struct_fields; FIELDS; end
|
156
|
+
|
157
|
+
def validate
|
158
|
+
end
|
159
|
+
|
160
|
+
::Thrift::Struct.generate_accessors self
|
161
|
+
end
|
162
|
+
|
163
|
+
class GetTrace_args
|
164
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
165
|
+
TRACEID = 1
|
166
|
+
|
167
|
+
FIELDS = {
|
168
|
+
TRACEID => {:type => ::Thrift::Types::I64, :name => 'traceId'}
|
169
|
+
}
|
170
|
+
|
171
|
+
def struct_fields; FIELDS; end
|
172
|
+
|
173
|
+
def validate
|
174
|
+
end
|
175
|
+
|
176
|
+
::Thrift::Struct.generate_accessors self
|
177
|
+
end
|
178
|
+
|
179
|
+
class GetTrace_result
|
180
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
181
|
+
SUCCESS = 0
|
182
|
+
E = 1
|
183
|
+
|
184
|
+
FIELDS = {
|
185
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::Span}},
|
186
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Concord::Thrift::BoltError}
|
187
|
+
}
|
188
|
+
|
189
|
+
def struct_fields; FIELDS; end
|
190
|
+
|
191
|
+
def validate
|
192
|
+
end
|
193
|
+
|
194
|
+
::Thrift::Struct.generate_accessors self
|
195
|
+
end
|
196
|
+
|
197
|
+
class GetTraceIds_args
|
198
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
199
|
+
STARTID = 1
|
200
|
+
LIMIT = 2
|
201
|
+
|
202
|
+
FIELDS = {
|
203
|
+
STARTID => {:type => ::Thrift::Types::I64, :name => 'startId', :default => 0},
|
204
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit', :default => 100}
|
205
|
+
}
|
206
|
+
|
207
|
+
def struct_fields; FIELDS; end
|
208
|
+
|
209
|
+
def validate
|
210
|
+
end
|
211
|
+
|
212
|
+
::Thrift::Struct.generate_accessors self
|
213
|
+
end
|
214
|
+
|
215
|
+
class GetTraceIds_result
|
216
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
217
|
+
SUCCESS = 0
|
218
|
+
E = 1
|
219
|
+
|
220
|
+
FIELDS = {
|
221
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
|
222
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Concord::Thrift::BoltError}
|
223
|
+
}
|
224
|
+
|
225
|
+
def struct_fields; FIELDS; end
|
226
|
+
|
227
|
+
def validate
|
228
|
+
end
|
229
|
+
|
230
|
+
::Thrift::Struct.generate_accessors self
|
231
|
+
end
|
232
|
+
|
233
|
+
class ConsolidateTraceIds_args
|
234
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
235
|
+
TRACEIDS = 1
|
236
|
+
|
237
|
+
FIELDS = {
|
238
|
+
TRACEIDS => {:type => ::Thrift::Types::LIST, :name => 'traceIds', :element => {:type => ::Thrift::Types::I64}}
|
239
|
+
}
|
240
|
+
|
241
|
+
def struct_fields; FIELDS; end
|
242
|
+
|
243
|
+
def validate
|
244
|
+
end
|
245
|
+
|
246
|
+
::Thrift::Struct.generate_accessors self
|
247
|
+
end
|
248
|
+
|
249
|
+
class ConsolidateTraceIds_result
|
250
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
251
|
+
E = 1
|
252
|
+
|
253
|
+
FIELDS = {
|
254
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Concord::Thrift::BoltError}
|
255
|
+
}
|
256
|
+
|
257
|
+
def struct_fields; FIELDS; end
|
258
|
+
|
259
|
+
def validate
|
260
|
+
end
|
261
|
+
|
262
|
+
::Thrift::Struct.generate_accessors self
|
263
|
+
end
|
264
|
+
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|
268
|
+
end
|
@@ -0,0 +1,456 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.2)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module Concord
|
10
|
+
module Thrift
|
11
|
+
module BackPressure
|
12
|
+
NONE = 0
|
13
|
+
ENQUEUE = 1
|
14
|
+
DROP_HEAD = 2
|
15
|
+
DROP_TAIL = 3
|
16
|
+
BLOCK_SENDER = 4
|
17
|
+
VALUE_MAP = {0 => "NONE", 1 => "ENQUEUE", 2 => "DROP_HEAD", 3 => "DROP_TAIL", 4 => "BLOCK_SENDER"}
|
18
|
+
VALID_VALUES = Set.new([NONE, ENQUEUE, DROP_HEAD, DROP_TAIL, BLOCK_SENDER]).freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
module StreamGrouping
|
22
|
+
ROUND_ROBIN = 0
|
23
|
+
SHUFFLE = 1
|
24
|
+
GROUP_BY = 2
|
25
|
+
LOCAL = 3
|
26
|
+
CUSTOM = 100
|
27
|
+
VALUE_MAP = {0 => "ROUND_ROBIN", 1 => "SHUFFLE", 2 => "GROUP_BY", 3 => "LOCAL", 100 => "CUSTOM"}
|
28
|
+
VALID_VALUES = Set.new([ROUND_ROBIN, SHUFFLE, GROUP_BY, LOCAL, CUSTOM]).freeze
|
29
|
+
end
|
30
|
+
|
31
|
+
module Signal
|
32
|
+
START = 0
|
33
|
+
ACTIVE = 1
|
34
|
+
INACTIVE = 2
|
35
|
+
SHUTDOWN = 3
|
36
|
+
KILL = 4
|
37
|
+
VALUE_MAP = {0 => "START", 1 => "ACTIVE", 2 => "INACTIVE", 3 => "SHUTDOWN", 4 => "KILL"}
|
38
|
+
VALID_VALUES = Set.new([START, ACTIVE, INACTIVE, SHUTDOWN, KILL]).freeze
|
39
|
+
end
|
40
|
+
|
41
|
+
module RecordFlags
|
42
|
+
CLIENT_RECORD = 1
|
43
|
+
FRAMEWORK_RECORD = 2
|
44
|
+
VALUE_MAP = {1 => "CLIENT_RECORD", 2 => "FRAMEWORK_RECORD"}
|
45
|
+
VALID_VALUES = Set.new([CLIENT_RECORD, FRAMEWORK_RECORD]).freeze
|
46
|
+
end
|
47
|
+
|
48
|
+
module AnnotationType
|
49
|
+
CLIENT_SEND = 0
|
50
|
+
CLIENT_RECV = 1
|
51
|
+
SERVER_SEND = 2
|
52
|
+
SERVER_RECV = 3
|
53
|
+
VALUE_MAP = {0 => "CLIENT_SEND", 1 => "CLIENT_RECV", 2 => "SERVER_SEND", 3 => "SERVER_RECV"}
|
54
|
+
VALID_VALUES = Set.new([CLIENT_SEND, CLIENT_RECV, SERVER_SEND, SERVER_RECV]).freeze
|
55
|
+
end
|
56
|
+
|
57
|
+
class BoltError < ::Thrift::Exception
|
58
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
59
|
+
REASON = 1
|
60
|
+
CONTEXT = 2
|
61
|
+
TIME = 3
|
62
|
+
|
63
|
+
FIELDS = {
|
64
|
+
REASON => {:type => ::Thrift::Types::STRING, :name => 'reason'},
|
65
|
+
CONTEXT => {:type => ::Thrift::Types::STRING, :name => 'context'},
|
66
|
+
TIME => {:type => ::Thrift::Types::I64, :name => 'time'}
|
67
|
+
}
|
68
|
+
|
69
|
+
def struct_fields; FIELDS; end
|
70
|
+
|
71
|
+
def validate
|
72
|
+
end
|
73
|
+
|
74
|
+
::Thrift::Struct.generate_accessors self
|
75
|
+
end
|
76
|
+
|
77
|
+
class Endpoint
|
78
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
79
|
+
IP = 1
|
80
|
+
PORT = 2
|
81
|
+
|
82
|
+
FIELDS = {
|
83
|
+
IP => {:type => ::Thrift::Types::STRING, :name => 'ip'},
|
84
|
+
PORT => {:type => ::Thrift::Types::I16, :name => 'port'}
|
85
|
+
}
|
86
|
+
|
87
|
+
def struct_fields; FIELDS; end
|
88
|
+
|
89
|
+
def validate
|
90
|
+
end
|
91
|
+
|
92
|
+
::Thrift::Struct.generate_accessors self
|
93
|
+
end
|
94
|
+
|
95
|
+
class StreamMetadata
|
96
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
97
|
+
NAME = 1
|
98
|
+
GROUPING = 2
|
99
|
+
|
100
|
+
FIELDS = {
|
101
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
102
|
+
GROUPING => {:type => ::Thrift::Types::I32, :name => 'grouping', :default => 1, :enum_class => ::Concord::Thrift::StreamGrouping}
|
103
|
+
}
|
104
|
+
|
105
|
+
def struct_fields; FIELDS; end
|
106
|
+
|
107
|
+
def validate
|
108
|
+
unless @grouping.nil? || ::Concord::Thrift::StreamGrouping::VALID_VALUES.include?(@grouping)
|
109
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grouping!')
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
::Thrift::Struct.generate_accessors self
|
114
|
+
end
|
115
|
+
|
116
|
+
class ComputationMetadata
|
117
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
118
|
+
NAME = 1
|
119
|
+
TASKID = 2
|
120
|
+
ISTREAMS = 3
|
121
|
+
OSTREAMS = 4
|
122
|
+
PROXYENDPOINT = 5
|
123
|
+
|
124
|
+
FIELDS = {
|
125
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
126
|
+
TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
|
127
|
+
ISTREAMS => {:type => ::Thrift::Types::LIST, :name => 'istreams', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::StreamMetadata}},
|
128
|
+
OSTREAMS => {:type => ::Thrift::Types::LIST, :name => 'ostreams', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::StreamMetadata}},
|
129
|
+
PROXYENDPOINT => {:type => ::Thrift::Types::STRUCT, :name => 'proxyEndpoint', :class => ::Concord::Thrift::Endpoint}
|
130
|
+
}
|
131
|
+
|
132
|
+
def struct_fields; FIELDS; end
|
133
|
+
|
134
|
+
def validate
|
135
|
+
end
|
136
|
+
|
137
|
+
::Thrift::Struct.generate_accessors self
|
138
|
+
end
|
139
|
+
|
140
|
+
class ExecutorTaskInfoHelper
|
141
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
142
|
+
FRAMEWORKLOGGINGLEVEL = 1
|
143
|
+
USER = 2
|
144
|
+
FRAMEWORKVMODULE = 3
|
145
|
+
SCHEDULER = 4
|
146
|
+
PROXY = 5
|
147
|
+
CLIENT = 6
|
148
|
+
TRACEAGGREGATOR = 7
|
149
|
+
EXECNAME = 8
|
150
|
+
FOLDER = 9
|
151
|
+
COMPUTATIONALIASNAME = 10
|
152
|
+
CLIENTARGUMENTS = 11
|
153
|
+
ENVIRONMENTEXTRA = 12
|
154
|
+
DOCKERCONTAINER = 13
|
155
|
+
|
156
|
+
FIELDS = {
|
157
|
+
FRAMEWORKLOGGINGLEVEL => {:type => ::Thrift::Types::I32, :name => 'frameworkLoggingLevel', :default => 1},
|
158
|
+
USER => {:type => ::Thrift::Types::STRING, :name => 'user'},
|
159
|
+
FRAMEWORKVMODULE => {:type => ::Thrift::Types::STRING, :name => 'frameworkVModule'},
|
160
|
+
SCHEDULER => {:type => ::Thrift::Types::STRUCT, :name => 'scheduler', :class => ::Concord::Thrift::Endpoint},
|
161
|
+
PROXY => {:type => ::Thrift::Types::STRUCT, :name => 'proxy', :class => ::Concord::Thrift::Endpoint},
|
162
|
+
CLIENT => {:type => ::Thrift::Types::STRUCT, :name => 'client', :class => ::Concord::Thrift::Endpoint},
|
163
|
+
TRACEAGGREGATOR => {:type => ::Thrift::Types::STRUCT, :name => 'traceAggregator', :class => ::Concord::Thrift::Endpoint},
|
164
|
+
EXECNAME => {:type => ::Thrift::Types::STRING, :name => 'execName'},
|
165
|
+
FOLDER => {:type => ::Thrift::Types::STRING, :name => 'folder'},
|
166
|
+
COMPUTATIONALIASNAME => {:type => ::Thrift::Types::STRING, :name => 'computationAliasName'},
|
167
|
+
CLIENTARGUMENTS => {:type => ::Thrift::Types::LIST, :name => 'clientArguments', :element => {:type => ::Thrift::Types::STRING}},
|
168
|
+
ENVIRONMENTEXTRA => {:type => ::Thrift::Types::LIST, :name => 'environmentExtra', :element => {:type => ::Thrift::Types::STRING}},
|
169
|
+
DOCKERCONTAINER => {:type => ::Thrift::Types::STRING, :name => 'dockerContainer'}
|
170
|
+
}
|
171
|
+
|
172
|
+
def struct_fields; FIELDS; end
|
173
|
+
|
174
|
+
def validate
|
175
|
+
end
|
176
|
+
|
177
|
+
::Thrift::Struct.generate_accessors self
|
178
|
+
end
|
179
|
+
|
180
|
+
class PhysicalComputationMetdata
|
181
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
182
|
+
TASKID = 1
|
183
|
+
SLAVEID = 2
|
184
|
+
CPUS = 3
|
185
|
+
MEM = 4
|
186
|
+
DISK = 5
|
187
|
+
TASKHELPER = 6
|
188
|
+
NEEDSRECONCILIATION = 7
|
189
|
+
|
190
|
+
FIELDS = {
|
191
|
+
TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
|
192
|
+
SLAVEID => {:type => ::Thrift::Types::STRING, :name => 'slaveId'},
|
193
|
+
CPUS => {:type => ::Thrift::Types::I32, :name => 'cpus'},
|
194
|
+
MEM => {:type => ::Thrift::Types::I32, :name => 'mem'},
|
195
|
+
DISK => {:type => ::Thrift::Types::I32, :name => 'disk'},
|
196
|
+
TASKHELPER => {:type => ::Thrift::Types::STRUCT, :name => 'taskHelper', :class => ::Concord::Thrift::ExecutorTaskInfoHelper},
|
197
|
+
NEEDSRECONCILIATION => {:type => ::Thrift::Types::BOOL, :name => 'needsReconciliation'}
|
198
|
+
}
|
199
|
+
|
200
|
+
def struct_fields; FIELDS; end
|
201
|
+
|
202
|
+
def validate
|
203
|
+
end
|
204
|
+
|
205
|
+
::Thrift::Struct.generate_accessors self
|
206
|
+
end
|
207
|
+
|
208
|
+
class PhysicalComputationLayout
|
209
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
210
|
+
NAME = 1
|
211
|
+
ISTREAMS = 2
|
212
|
+
OSTREAMS = 3
|
213
|
+
NODES = 4
|
214
|
+
|
215
|
+
FIELDS = {
|
216
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
217
|
+
ISTREAMS => {:type => ::Thrift::Types::LIST, :name => 'istreams', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::StreamMetadata}},
|
218
|
+
OSTREAMS => {:type => ::Thrift::Types::LIST, :name => 'ostreams', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::StreamMetadata}},
|
219
|
+
NODES => {:type => ::Thrift::Types::LIST, :name => 'nodes', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::PhysicalComputationMetdata}}
|
220
|
+
}
|
221
|
+
|
222
|
+
def struct_fields; FIELDS; end
|
223
|
+
|
224
|
+
def validate
|
225
|
+
end
|
226
|
+
|
227
|
+
::Thrift::Struct.generate_accessors self
|
228
|
+
end
|
229
|
+
|
230
|
+
class SchedulerMetadata
|
231
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
232
|
+
ENDPOINT = 1
|
233
|
+
VERSION = 2
|
234
|
+
|
235
|
+
FIELDS = {
|
236
|
+
ENDPOINT => {:type => ::Thrift::Types::STRUCT, :name => 'endpoint', :class => ::Concord::Thrift::Endpoint},
|
237
|
+
VERSION => {:type => ::Thrift::Types::I32, :name => 'version'}
|
238
|
+
}
|
239
|
+
|
240
|
+
def struct_fields; FIELDS; end
|
241
|
+
|
242
|
+
def validate
|
243
|
+
end
|
244
|
+
|
245
|
+
::Thrift::Struct.generate_accessors self
|
246
|
+
end
|
247
|
+
|
248
|
+
class TopologyMetadata
|
249
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
250
|
+
VERSION = 1
|
251
|
+
HASH = 2
|
252
|
+
COMPUTATIONS = 3
|
253
|
+
|
254
|
+
FIELDS = {
|
255
|
+
VERSION => {:type => ::Thrift::Types::I32, :name => 'version', :default => 0},
|
256
|
+
HASH => {:type => ::Thrift::Types::STRING, :name => 'hash'},
|
257
|
+
COMPUTATIONS => {:type => ::Thrift::Types::MAP, :name => 'computations', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::PhysicalComputationLayout}}
|
258
|
+
}
|
259
|
+
|
260
|
+
def struct_fields; FIELDS; end
|
261
|
+
|
262
|
+
def validate
|
263
|
+
end
|
264
|
+
|
265
|
+
::Thrift::Struct.generate_accessors self
|
266
|
+
end
|
267
|
+
|
268
|
+
class RecordMetadata
|
269
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
270
|
+
TRACEID = 1
|
271
|
+
SOURCESPANID = 2
|
272
|
+
FLAGS = 3
|
273
|
+
STREAM = 4
|
274
|
+
TIMESTAMP = 5
|
275
|
+
|
276
|
+
FIELDS = {
|
277
|
+
TRACEID => {:type => ::Thrift::Types::I64, :name => 'traceId', :default => 0},
|
278
|
+
SOURCESPANID => {:type => ::Thrift::Types::I64, :name => 'sourceSpanId', :default => 0},
|
279
|
+
FLAGS => {:type => ::Thrift::Types::I32, :name => 'flags', :default => 0},
|
280
|
+
STREAM => {:type => ::Thrift::Types::I64, :name => 'stream', :default => 0},
|
281
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :default => 0}
|
282
|
+
}
|
283
|
+
|
284
|
+
def struct_fields; FIELDS; end
|
285
|
+
|
286
|
+
def validate
|
287
|
+
end
|
288
|
+
|
289
|
+
::Thrift::Struct.generate_accessors self
|
290
|
+
end
|
291
|
+
|
292
|
+
class Record
|
293
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
294
|
+
META = 1
|
295
|
+
TIME = 2
|
296
|
+
KEY = 3
|
297
|
+
DATA = 4
|
298
|
+
USERSTREAM = 5
|
299
|
+
|
300
|
+
FIELDS = {
|
301
|
+
META => {:type => ::Thrift::Types::STRUCT, :name => 'meta', :class => ::Concord::Thrift::RecordMetadata},
|
302
|
+
TIME => {:type => ::Thrift::Types::I64, :name => 'time', :default => 0},
|
303
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
304
|
+
DATA => {:type => ::Thrift::Types::STRING, :name => 'data', :binary => true},
|
305
|
+
USERSTREAM => {:type => ::Thrift::Types::STRING, :name => 'userStream', :binary => true}
|
306
|
+
}
|
307
|
+
|
308
|
+
def struct_fields; FIELDS; end
|
309
|
+
|
310
|
+
def validate
|
311
|
+
end
|
312
|
+
|
313
|
+
::Thrift::Struct.generate_accessors self
|
314
|
+
end
|
315
|
+
|
316
|
+
class ComputationTx
|
317
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
318
|
+
ID = 1
|
319
|
+
RECORDS = 2
|
320
|
+
TIMERS = 3
|
321
|
+
|
322
|
+
FIELDS = {
|
323
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id', :default => 0},
|
324
|
+
RECORDS => {:type => ::Thrift::Types::LIST, :name => 'records', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::Record}},
|
325
|
+
TIMERS => {:type => ::Thrift::Types::MAP, :name => 'timers', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}
|
326
|
+
}
|
327
|
+
|
328
|
+
def struct_fields; FIELDS; end
|
329
|
+
|
330
|
+
def validate
|
331
|
+
end
|
332
|
+
|
333
|
+
::Thrift::Struct.generate_accessors self
|
334
|
+
end
|
335
|
+
|
336
|
+
class RichStream
|
337
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
338
|
+
STREAM = 1
|
339
|
+
COMPUTATIONNAME = 2
|
340
|
+
ENDPOINTS = 3
|
341
|
+
|
342
|
+
FIELDS = {
|
343
|
+
STREAM => {:type => ::Thrift::Types::STRUCT, :name => 'stream', :class => ::Concord::Thrift::StreamMetadata},
|
344
|
+
COMPUTATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'computationName'},
|
345
|
+
ENDPOINTS => {:type => ::Thrift::Types::LIST, :name => 'endpoints', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::Endpoint}}
|
346
|
+
}
|
347
|
+
|
348
|
+
def struct_fields; FIELDS; end
|
349
|
+
|
350
|
+
def validate
|
351
|
+
end
|
352
|
+
|
353
|
+
::Thrift::Struct.generate_accessors self
|
354
|
+
end
|
355
|
+
|
356
|
+
class BoltComputationRequest
|
357
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
358
|
+
NAME = 1
|
359
|
+
INSTANCES = 2
|
360
|
+
CPUS = 3
|
361
|
+
MEM = 4
|
362
|
+
DISK = 5
|
363
|
+
TASKHELPER = 6
|
364
|
+
FORCEUPDATEBINARY = 7
|
365
|
+
SLUG = 8
|
366
|
+
|
367
|
+
FIELDS = {
|
368
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
369
|
+
INSTANCES => {:type => ::Thrift::Types::I64, :name => 'instances', :default => 1},
|
370
|
+
CPUS => {:type => ::Thrift::Types::I64, :name => 'cpus', :default => 1},
|
371
|
+
MEM => {:type => ::Thrift::Types::I64, :name => 'mem', :default => 2048},
|
372
|
+
DISK => {:type => ::Thrift::Types::I64, :name => 'disk', :default => 10240},
|
373
|
+
TASKHELPER => {:type => ::Thrift::Types::STRUCT, :name => 'taskHelper', :class => ::Concord::Thrift::ExecutorTaskInfoHelper},
|
374
|
+
FORCEUPDATEBINARY => {:type => ::Thrift::Types::BOOL, :name => 'forceUpdateBinary'},
|
375
|
+
SLUG => {:type => ::Thrift::Types::STRING, :name => 'slug', :binary => true}
|
376
|
+
}
|
377
|
+
|
378
|
+
def struct_fields; FIELDS; end
|
379
|
+
|
380
|
+
def validate
|
381
|
+
end
|
382
|
+
|
383
|
+
::Thrift::Struct.generate_accessors self
|
384
|
+
end
|
385
|
+
|
386
|
+
class Annotation
|
387
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
388
|
+
TIMESTAMP = 1
|
389
|
+
TYPE = 2
|
390
|
+
KEY = 3
|
391
|
+
VALUE = 4
|
392
|
+
HOST = 5
|
393
|
+
|
394
|
+
FIELDS = {
|
395
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
396
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::Concord::Thrift::AnnotationType},
|
397
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
398
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
|
399
|
+
HOST => {:type => ::Thrift::Types::STRUCT, :name => 'host', :class => ::Concord::Thrift::Endpoint}
|
400
|
+
}
|
401
|
+
|
402
|
+
def struct_fields; FIELDS; end
|
403
|
+
|
404
|
+
def validate
|
405
|
+
unless @type.nil? || ::Concord::Thrift::AnnotationType::VALID_VALUES.include?(@type)
|
406
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
::Thrift::Struct.generate_accessors self
|
411
|
+
end
|
412
|
+
|
413
|
+
class Span
|
414
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
415
|
+
TRACEID = 1
|
416
|
+
ID = 2
|
417
|
+
PARENTID = 3
|
418
|
+
NAME = 4
|
419
|
+
ANNOTATIONS = 5
|
420
|
+
|
421
|
+
FIELDS = {
|
422
|
+
TRACEID => {:type => ::Thrift::Types::I64, :name => 'traceId'},
|
423
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
424
|
+
PARENTID => {:type => ::Thrift::Types::I64, :name => 'parentId'},
|
425
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
426
|
+
ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::Annotation}}
|
427
|
+
}
|
428
|
+
|
429
|
+
def struct_fields; FIELDS; end
|
430
|
+
|
431
|
+
def validate
|
432
|
+
end
|
433
|
+
|
434
|
+
::Thrift::Struct.generate_accessors self
|
435
|
+
end
|
436
|
+
|
437
|
+
class Trace
|
438
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
439
|
+
ID = 1
|
440
|
+
SPANS = 2
|
441
|
+
|
442
|
+
FIELDS = {
|
443
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
444
|
+
SPANS => {:type => ::Thrift::Types::LIST, :name => 'spans', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::Span}}
|
445
|
+
}
|
446
|
+
|
447
|
+
def struct_fields; FIELDS; end
|
448
|
+
|
449
|
+
def validate
|
450
|
+
end
|
451
|
+
|
452
|
+
::Thrift::Struct.generate_accessors self
|
453
|
+
end
|
454
|
+
|
455
|
+
end
|
456
|
+
end
|