floom 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +3 -0
- data/README.md +15 -0
- data/Rakefile +3 -0
- data/bin/debug +19 -0
- data/bin/floom +22 -0
- data/bin/oneshot +41 -0
- data/bin/source +74 -0
- data/floom.gemspec +23 -0
- data/lib/floom.rb +18 -0
- data/lib/floom/client.rb +33 -0
- data/lib/floom/client/master.rb +106 -0
- data/lib/floom/client/reporter.rb +64 -0
- data/lib/floom/models/configuration.rb +71 -0
- data/lib/floom/models/report.rb +21 -0
- data/lib/floom/models/request.rb +29 -0
- data/lib/floom/models/status.rb +31 -0
- data/lib/floom/version.rb +3 -0
- data/lib/thrift/flume_constants.rb +8 -0
- data/lib/thrift/flume_master_admin_server.rb +454 -0
- data/lib/thrift/flume_types.rb +55 -0
- data/lib/thrift/flumeconfig_constants.rb +8 -0
- data/lib/thrift/flumeconfig_types.rb +48 -0
- data/lib/thrift/flumereportserver_constants.rb +8 -0
- data/lib/thrift/flumereportserver_types.rb +27 -0
- data/lib/thrift/mastercontrol_constants.rb +8 -0
- data/lib/thrift/mastercontrol_types.rb +78 -0
- data/lib/thrift/thrift_flume_client_server.rb +409 -0
- data/lib/thrift/thrift_flume_event_server.rb +119 -0
- data/lib/thrift/thrift_flume_report_server.rb +131 -0
- data/spec/spec_helper.rb +0 -0
- metadata +93 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
|
8
|
+
module Priority
|
9
|
+
FATAL = 0
|
10
|
+
ERROR = 1
|
11
|
+
WARN = 2
|
12
|
+
INFO = 3
|
13
|
+
DEBUG = 4
|
14
|
+
TRACE = 5
|
15
|
+
VALUE_MAP = {0 => "FATAL", 1 => "ERROR", 2 => "WARN", 3 => "INFO", 4 => "DEBUG", 5 => "TRACE"}
|
16
|
+
VALID_VALUES = Set.new([FATAL, ERROR, WARN, INFO, DEBUG, TRACE]).freeze
|
17
|
+
end
|
18
|
+
|
19
|
+
module EventStatus
|
20
|
+
ACK = 0
|
21
|
+
COMMITED = 1
|
22
|
+
ERR = 2
|
23
|
+
VALUE_MAP = {0 => "ACK", 1 => "COMMITED", 2 => "ERR"}
|
24
|
+
VALID_VALUES = Set.new([ACK, COMMITED, ERR]).freeze
|
25
|
+
end
|
26
|
+
|
27
|
+
class ThriftFlumeEvent
|
28
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
29
|
+
TIMESTAMP = 1
|
30
|
+
PRIORITY = 2
|
31
|
+
BODY = 3
|
32
|
+
NANOS = 4
|
33
|
+
HOST = 5
|
34
|
+
FIELDS = 6
|
35
|
+
|
36
|
+
FIELDS = {
|
37
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
38
|
+
PRIORITY => {:type => ::Thrift::Types::I32, :name => 'priority', :enum_class => Priority},
|
39
|
+
BODY => {:type => ::Thrift::Types::STRING, :name => 'body', :binary => true},
|
40
|
+
NANOS => {:type => ::Thrift::Types::I64, :name => 'nanos'},
|
41
|
+
HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
|
42
|
+
FIELDS => {:type => ::Thrift::Types::MAP, :name => 'fields', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
|
43
|
+
}
|
44
|
+
|
45
|
+
def struct_fields; FIELDS; end
|
46
|
+
|
47
|
+
def validate
|
48
|
+
unless @priority.nil? || Priority::VALID_VALUES.include?(@priority)
|
49
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field priority!')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
::Thrift::Struct.generate_accessors self
|
54
|
+
end
|
55
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'flumereportserver_types'
|
8
|
+
|
9
|
+
|
10
|
+
module FlumeNodeState
|
11
|
+
HELLO = 0
|
12
|
+
IDLE = 1
|
13
|
+
CONFIGURING = 2
|
14
|
+
ACTIVE = 3
|
15
|
+
ERROR = 4
|
16
|
+
LOST = 5
|
17
|
+
DECOMMISSIONED = 6
|
18
|
+
CLOSING = 7
|
19
|
+
VALUE_MAP = {0 => "HELLO", 1 => "IDLE", 2 => "CONFIGURING", 3 => "ACTIVE", 4 => "ERROR", 5 => "LOST", 6 => "DECOMMISSIONED", 7 => "CLOSING"}
|
20
|
+
VALID_VALUES = Set.new([HELLO, IDLE, CONFIGURING, ACTIVE, ERROR, LOST, DECOMMISSIONED, CLOSING]).freeze
|
21
|
+
end
|
22
|
+
|
23
|
+
class ThriftFlumeConfigData
|
24
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
25
|
+
TIMESTAMP = 1
|
26
|
+
SOURCECONFIG = 2
|
27
|
+
SINKCONFIG = 3
|
28
|
+
SOURCEVERSION = 4
|
29
|
+
SINKVERSION = 5
|
30
|
+
FLOWID = 6
|
31
|
+
|
32
|
+
FIELDS = {
|
33
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
34
|
+
SOURCECONFIG => {:type => ::Thrift::Types::STRING, :name => 'sourceConfig'},
|
35
|
+
SINKCONFIG => {:type => ::Thrift::Types::STRING, :name => 'sinkConfig'},
|
36
|
+
SOURCEVERSION => {:type => ::Thrift::Types::I64, :name => 'sourceVersion'},
|
37
|
+
SINKVERSION => {:type => ::Thrift::Types::I64, :name => 'sinkVersion'},
|
38
|
+
FLOWID => {:type => ::Thrift::Types::STRING, :name => 'flowID'}
|
39
|
+
}
|
40
|
+
|
41
|
+
def struct_fields; FIELDS; end
|
42
|
+
|
43
|
+
def validate
|
44
|
+
end
|
45
|
+
|
46
|
+
::Thrift::Struct.generate_accessors self
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
|
8
|
+
class ThriftFlumeReport
|
9
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
10
|
+
STRINGMETRICS = 3
|
11
|
+
LONGMETRICS = 4
|
12
|
+
DOUBLEMETRICS = 5
|
13
|
+
|
14
|
+
FIELDS = {
|
15
|
+
STRINGMETRICS => {:type => ::Thrift::Types::MAP, :name => 'stringMetrics', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
16
|
+
LONGMETRICS => {:type => ::Thrift::Types::MAP, :name => 'longMetrics', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}},
|
17
|
+
DOUBLEMETRICS => {:type => ::Thrift::Types::MAP, :name => 'doubleMetrics', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::DOUBLE}}
|
18
|
+
}
|
19
|
+
|
20
|
+
def struct_fields; FIELDS; end
|
21
|
+
|
22
|
+
def validate
|
23
|
+
end
|
24
|
+
|
25
|
+
::Thrift::Struct.generate_accessors self
|
26
|
+
end
|
27
|
+
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'flumeconfig_types'
|
8
|
+
|
9
|
+
|
10
|
+
class FlumeMasterCommandThrift
|
11
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
12
|
+
COMMAND = 1
|
13
|
+
ARGUMENTS = 2
|
14
|
+
|
15
|
+
FIELDS = {
|
16
|
+
COMMAND => {:type => ::Thrift::Types::STRING, :name => 'command'},
|
17
|
+
ARGUMENTS => {:type => ::Thrift::Types::LIST, :name => 'arguments', :element => {:type => ::Thrift::Types::STRING}}
|
18
|
+
}
|
19
|
+
|
20
|
+
def struct_fields; FIELDS; end
|
21
|
+
|
22
|
+
def validate
|
23
|
+
end
|
24
|
+
|
25
|
+
::Thrift::Struct.generate_accessors self
|
26
|
+
end
|
27
|
+
|
28
|
+
class FlumeNodeStatusThrift
|
29
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
30
|
+
STATE = 1
|
31
|
+
VERSION = 2
|
32
|
+
LASTSEEN = 3
|
33
|
+
LASTSEENDELTAMILLIS = 6
|
34
|
+
HOST = 4
|
35
|
+
PHYSICALNODE = 5
|
36
|
+
|
37
|
+
FIELDS = {
|
38
|
+
STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => FlumeNodeState},
|
39
|
+
VERSION => {:type => ::Thrift::Types::I64, :name => 'version'},
|
40
|
+
LASTSEEN => {:type => ::Thrift::Types::I64, :name => 'lastseen'},
|
41
|
+
LASTSEENDELTAMILLIS => {:type => ::Thrift::Types::I64, :name => 'lastSeenDeltaMillis'},
|
42
|
+
HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
|
43
|
+
PHYSICALNODE => {:type => ::Thrift::Types::STRING, :name => 'physicalNode'}
|
44
|
+
}
|
45
|
+
|
46
|
+
def struct_fields; FIELDS; end
|
47
|
+
|
48
|
+
def validate
|
49
|
+
unless @state.nil? || FlumeNodeState::VALID_VALUES.include?(@state)
|
50
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
::Thrift::Struct.generate_accessors self
|
55
|
+
end
|
56
|
+
|
57
|
+
class CommandStatusThrift
|
58
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
59
|
+
CMDID = 1
|
60
|
+
STATE = 2
|
61
|
+
MESSAGE = 3
|
62
|
+
CMD = 4
|
63
|
+
|
64
|
+
FIELDS = {
|
65
|
+
CMDID => {:type => ::Thrift::Types::I64, :name => 'cmdId'},
|
66
|
+
STATE => {:type => ::Thrift::Types::STRING, :name => 'state'},
|
67
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
|
68
|
+
CMD => {:type => ::Thrift::Types::STRUCT, :name => 'cmd', :class => FlumeMasterCommandThrift}
|
69
|
+
}
|
70
|
+
|
71
|
+
def struct_fields; FIELDS; end
|
72
|
+
|
73
|
+
def validate
|
74
|
+
end
|
75
|
+
|
76
|
+
::Thrift::Struct.generate_accessors self
|
77
|
+
end
|
78
|
+
|
@@ -0,0 +1,409 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'flumeconfig_types'
|
9
|
+
|
10
|
+
module ThriftFlumeClientServer
|
11
|
+
class Client
|
12
|
+
include ::Thrift::Client
|
13
|
+
|
14
|
+
def heartbeat(logicalNode, physicalNode, host, s, timestamp)
|
15
|
+
send_heartbeat(logicalNode, physicalNode, host, s, timestamp)
|
16
|
+
return recv_heartbeat()
|
17
|
+
end
|
18
|
+
|
19
|
+
def send_heartbeat(logicalNode, physicalNode, host, s, timestamp)
|
20
|
+
send_message('heartbeat', Heartbeat_args, :logicalNode => logicalNode, :physicalNode => physicalNode, :host => host, :s => s, :timestamp => timestamp)
|
21
|
+
end
|
22
|
+
|
23
|
+
def recv_heartbeat()
|
24
|
+
result = receive_message(Heartbeat_result)
|
25
|
+
return result.success unless result.success.nil?
|
26
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'heartbeat failed: unknown result')
|
27
|
+
end
|
28
|
+
|
29
|
+
def getConfig(sourceId)
|
30
|
+
send_getConfig(sourceId)
|
31
|
+
return recv_getConfig()
|
32
|
+
end
|
33
|
+
|
34
|
+
def send_getConfig(sourceId)
|
35
|
+
send_message('getConfig', GetConfig_args, :sourceId => sourceId)
|
36
|
+
end
|
37
|
+
|
38
|
+
def recv_getConfig()
|
39
|
+
result = receive_message(GetConfig_result)
|
40
|
+
return result.success unless result.success.nil?
|
41
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getConfig failed: unknown result')
|
42
|
+
end
|
43
|
+
|
44
|
+
def getLogicalNodes(physNode)
|
45
|
+
send_getLogicalNodes(physNode)
|
46
|
+
return recv_getLogicalNodes()
|
47
|
+
end
|
48
|
+
|
49
|
+
def send_getLogicalNodes(physNode)
|
50
|
+
send_message('getLogicalNodes', GetLogicalNodes_args, :physNode => physNode)
|
51
|
+
end
|
52
|
+
|
53
|
+
def recv_getLogicalNodes()
|
54
|
+
result = receive_message(GetLogicalNodes_result)
|
55
|
+
return result.success unless result.success.nil?
|
56
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLogicalNodes failed: unknown result')
|
57
|
+
end
|
58
|
+
|
59
|
+
def getChokeMap(physNode)
|
60
|
+
send_getChokeMap(physNode)
|
61
|
+
return recv_getChokeMap()
|
62
|
+
end
|
63
|
+
|
64
|
+
def send_getChokeMap(physNode)
|
65
|
+
send_message('getChokeMap', GetChokeMap_args, :physNode => physNode)
|
66
|
+
end
|
67
|
+
|
68
|
+
def recv_getChokeMap()
|
69
|
+
result = receive_message(GetChokeMap_result)
|
70
|
+
return result.success unless result.success.nil?
|
71
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getChokeMap failed: unknown result')
|
72
|
+
end
|
73
|
+
|
74
|
+
def acknowledge(ackid)
|
75
|
+
send_acknowledge(ackid)
|
76
|
+
recv_acknowledge()
|
77
|
+
end
|
78
|
+
|
79
|
+
def send_acknowledge(ackid)
|
80
|
+
send_message('acknowledge', Acknowledge_args, :ackid => ackid)
|
81
|
+
end
|
82
|
+
|
83
|
+
def recv_acknowledge()
|
84
|
+
result = receive_message(Acknowledge_result)
|
85
|
+
return
|
86
|
+
end
|
87
|
+
|
88
|
+
def checkAck(ackid)
|
89
|
+
send_checkAck(ackid)
|
90
|
+
return recv_checkAck()
|
91
|
+
end
|
92
|
+
|
93
|
+
def send_checkAck(ackid)
|
94
|
+
send_message('checkAck', CheckAck_args, :ackid => ackid)
|
95
|
+
end
|
96
|
+
|
97
|
+
def recv_checkAck()
|
98
|
+
result = receive_message(CheckAck_result)
|
99
|
+
return result.success unless result.success.nil?
|
100
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'checkAck failed: unknown result')
|
101
|
+
end
|
102
|
+
|
103
|
+
def putReports(reports)
|
104
|
+
send_putReports(reports)
|
105
|
+
recv_putReports()
|
106
|
+
end
|
107
|
+
|
108
|
+
def send_putReports(reports)
|
109
|
+
send_message('putReports', PutReports_args, :reports => reports)
|
110
|
+
end
|
111
|
+
|
112
|
+
def recv_putReports()
|
113
|
+
result = receive_message(PutReports_result)
|
114
|
+
return
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
118
|
+
|
119
|
+
class Processor
|
120
|
+
include ::Thrift::Processor
|
121
|
+
|
122
|
+
def process_heartbeat(seqid, iprot, oprot)
|
123
|
+
args = read_args(iprot, Heartbeat_args)
|
124
|
+
result = Heartbeat_result.new()
|
125
|
+
result.success = @handler.heartbeat(args.logicalNode, args.physicalNode, args.host, args.s, args.timestamp)
|
126
|
+
write_result(result, oprot, 'heartbeat', seqid)
|
127
|
+
end
|
128
|
+
|
129
|
+
def process_getConfig(seqid, iprot, oprot)
|
130
|
+
args = read_args(iprot, GetConfig_args)
|
131
|
+
result = GetConfig_result.new()
|
132
|
+
result.success = @handler.getConfig(args.sourceId)
|
133
|
+
write_result(result, oprot, 'getConfig', seqid)
|
134
|
+
end
|
135
|
+
|
136
|
+
def process_getLogicalNodes(seqid, iprot, oprot)
|
137
|
+
args = read_args(iprot, GetLogicalNodes_args)
|
138
|
+
result = GetLogicalNodes_result.new()
|
139
|
+
result.success = @handler.getLogicalNodes(args.physNode)
|
140
|
+
write_result(result, oprot, 'getLogicalNodes', seqid)
|
141
|
+
end
|
142
|
+
|
143
|
+
def process_getChokeMap(seqid, iprot, oprot)
|
144
|
+
args = read_args(iprot, GetChokeMap_args)
|
145
|
+
result = GetChokeMap_result.new()
|
146
|
+
result.success = @handler.getChokeMap(args.physNode)
|
147
|
+
write_result(result, oprot, 'getChokeMap', seqid)
|
148
|
+
end
|
149
|
+
|
150
|
+
def process_acknowledge(seqid, iprot, oprot)
|
151
|
+
args = read_args(iprot, Acknowledge_args)
|
152
|
+
result = Acknowledge_result.new()
|
153
|
+
@handler.acknowledge(args.ackid)
|
154
|
+
write_result(result, oprot, 'acknowledge', seqid)
|
155
|
+
end
|
156
|
+
|
157
|
+
def process_checkAck(seqid, iprot, oprot)
|
158
|
+
args = read_args(iprot, CheckAck_args)
|
159
|
+
result = CheckAck_result.new()
|
160
|
+
result.success = @handler.checkAck(args.ackid)
|
161
|
+
write_result(result, oprot, 'checkAck', seqid)
|
162
|
+
end
|
163
|
+
|
164
|
+
def process_putReports(seqid, iprot, oprot)
|
165
|
+
args = read_args(iprot, PutReports_args)
|
166
|
+
result = PutReports_result.new()
|
167
|
+
@handler.putReports(args.reports)
|
168
|
+
write_result(result, oprot, 'putReports', seqid)
|
169
|
+
end
|
170
|
+
|
171
|
+
end
|
172
|
+
|
173
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
174
|
+
|
175
|
+
class Heartbeat_args
|
176
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
177
|
+
LOGICALNODE = 1
|
178
|
+
PHYSICALNODE = 4
|
179
|
+
HOST = 5
|
180
|
+
S = 2
|
181
|
+
TIMESTAMP = 3
|
182
|
+
|
183
|
+
FIELDS = {
|
184
|
+
LOGICALNODE => {:type => ::Thrift::Types::STRING, :name => 'logicalNode'},
|
185
|
+
PHYSICALNODE => {:type => ::Thrift::Types::STRING, :name => 'physicalNode'},
|
186
|
+
HOST => {:type => ::Thrift::Types::STRING, :name => 'host'},
|
187
|
+
S => {:type => ::Thrift::Types::I32, :name => 's', :enum_class => FlumeNodeState},
|
188
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
|
189
|
+
}
|
190
|
+
|
191
|
+
def struct_fields; FIELDS; end
|
192
|
+
|
193
|
+
def validate
|
194
|
+
unless @s.nil? || FlumeNodeState::VALID_VALUES.include?(@s)
|
195
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field s!')
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
::Thrift::Struct.generate_accessors self
|
200
|
+
end
|
201
|
+
|
202
|
+
class Heartbeat_result
|
203
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
204
|
+
SUCCESS = 0
|
205
|
+
|
206
|
+
FIELDS = {
|
207
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
208
|
+
}
|
209
|
+
|
210
|
+
def struct_fields; FIELDS; end
|
211
|
+
|
212
|
+
def validate
|
213
|
+
end
|
214
|
+
|
215
|
+
::Thrift::Struct.generate_accessors self
|
216
|
+
end
|
217
|
+
|
218
|
+
class GetConfig_args
|
219
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
220
|
+
SOURCEID = 1
|
221
|
+
|
222
|
+
FIELDS = {
|
223
|
+
SOURCEID => {:type => ::Thrift::Types::STRING, :name => 'sourceId'}
|
224
|
+
}
|
225
|
+
|
226
|
+
def struct_fields; FIELDS; end
|
227
|
+
|
228
|
+
def validate
|
229
|
+
end
|
230
|
+
|
231
|
+
::Thrift::Struct.generate_accessors self
|
232
|
+
end
|
233
|
+
|
234
|
+
class GetConfig_result
|
235
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
236
|
+
SUCCESS = 0
|
237
|
+
|
238
|
+
FIELDS = {
|
239
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ThriftFlumeConfigData}
|
240
|
+
}
|
241
|
+
|
242
|
+
def struct_fields; FIELDS; end
|
243
|
+
|
244
|
+
def validate
|
245
|
+
end
|
246
|
+
|
247
|
+
::Thrift::Struct.generate_accessors self
|
248
|
+
end
|
249
|
+
|
250
|
+
class GetLogicalNodes_args
|
251
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
252
|
+
PHYSNODE = 1
|
253
|
+
|
254
|
+
FIELDS = {
|
255
|
+
PHYSNODE => {:type => ::Thrift::Types::STRING, :name => 'physNode'}
|
256
|
+
}
|
257
|
+
|
258
|
+
def struct_fields; FIELDS; end
|
259
|
+
|
260
|
+
def validate
|
261
|
+
end
|
262
|
+
|
263
|
+
::Thrift::Struct.generate_accessors self
|
264
|
+
end
|
265
|
+
|
266
|
+
class GetLogicalNodes_result
|
267
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
268
|
+
SUCCESS = 0
|
269
|
+
|
270
|
+
FIELDS = {
|
271
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
|
272
|
+
}
|
273
|
+
|
274
|
+
def struct_fields; FIELDS; end
|
275
|
+
|
276
|
+
def validate
|
277
|
+
end
|
278
|
+
|
279
|
+
::Thrift::Struct.generate_accessors self
|
280
|
+
end
|
281
|
+
|
282
|
+
class GetChokeMap_args
|
283
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
284
|
+
PHYSNODE = 1
|
285
|
+
|
286
|
+
FIELDS = {
|
287
|
+
PHYSNODE => {:type => ::Thrift::Types::STRING, :name => 'physNode'}
|
288
|
+
}
|
289
|
+
|
290
|
+
def struct_fields; FIELDS; end
|
291
|
+
|
292
|
+
def validate
|
293
|
+
end
|
294
|
+
|
295
|
+
::Thrift::Struct.generate_accessors self
|
296
|
+
end
|
297
|
+
|
298
|
+
class GetChokeMap_result
|
299
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
300
|
+
SUCCESS = 0
|
301
|
+
|
302
|
+
FIELDS = {
|
303
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}}
|
304
|
+
}
|
305
|
+
|
306
|
+
def struct_fields; FIELDS; end
|
307
|
+
|
308
|
+
def validate
|
309
|
+
end
|
310
|
+
|
311
|
+
::Thrift::Struct.generate_accessors self
|
312
|
+
end
|
313
|
+
|
314
|
+
class Acknowledge_args
|
315
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
316
|
+
ACKID = 1
|
317
|
+
|
318
|
+
FIELDS = {
|
319
|
+
ACKID => {:type => ::Thrift::Types::STRING, :name => 'ackid'}
|
320
|
+
}
|
321
|
+
|
322
|
+
def struct_fields; FIELDS; end
|
323
|
+
|
324
|
+
def validate
|
325
|
+
end
|
326
|
+
|
327
|
+
::Thrift::Struct.generate_accessors self
|
328
|
+
end
|
329
|
+
|
330
|
+
class Acknowledge_result
|
331
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
332
|
+
|
333
|
+
FIELDS = {
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
def struct_fields; FIELDS; end
|
338
|
+
|
339
|
+
def validate
|
340
|
+
end
|
341
|
+
|
342
|
+
::Thrift::Struct.generate_accessors self
|
343
|
+
end
|
344
|
+
|
345
|
+
class CheckAck_args
|
346
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
347
|
+
ACKID = 1
|
348
|
+
|
349
|
+
FIELDS = {
|
350
|
+
ACKID => {:type => ::Thrift::Types::STRING, :name => 'ackid'}
|
351
|
+
}
|
352
|
+
|
353
|
+
def struct_fields; FIELDS; end
|
354
|
+
|
355
|
+
def validate
|
356
|
+
end
|
357
|
+
|
358
|
+
::Thrift::Struct.generate_accessors self
|
359
|
+
end
|
360
|
+
|
361
|
+
class CheckAck_result
|
362
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
363
|
+
SUCCESS = 0
|
364
|
+
|
365
|
+
FIELDS = {
|
366
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
367
|
+
}
|
368
|
+
|
369
|
+
def struct_fields; FIELDS; end
|
370
|
+
|
371
|
+
def validate
|
372
|
+
end
|
373
|
+
|
374
|
+
::Thrift::Struct.generate_accessors self
|
375
|
+
end
|
376
|
+
|
377
|
+
class PutReports_args
|
378
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
379
|
+
REPORTS = 1
|
380
|
+
|
381
|
+
FIELDS = {
|
382
|
+
REPORTS => {:type => ::Thrift::Types::MAP, :name => 'reports', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ThriftFlumeReport}}
|
383
|
+
}
|
384
|
+
|
385
|
+
def struct_fields; FIELDS; end
|
386
|
+
|
387
|
+
def validate
|
388
|
+
end
|
389
|
+
|
390
|
+
::Thrift::Struct.generate_accessors self
|
391
|
+
end
|
392
|
+
|
393
|
+
class PutReports_result
|
394
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
395
|
+
|
396
|
+
FIELDS = {
|
397
|
+
|
398
|
+
}
|
399
|
+
|
400
|
+
def struct_fields; FIELDS; end
|
401
|
+
|
402
|
+
def validate
|
403
|
+
end
|
404
|
+
|
405
|
+
::Thrift::Struct.generate_accessors self
|
406
|
+
end
|
407
|
+
|
408
|
+
end
|
409
|
+
|