stat-count-client 0.0.1 → 0.0.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 +7 -0
- data/Gemfile +1 -0
- data/doc/collecter.thrift +299 -0
- data/doc/gen.txt +1 -0
- data/lib/config_loader.rb +2 -7
- data/lib/hessian_data_utils.rb +0 -7
- data/lib/logger_factory.rb +7 -12
- data/lib/stat-count-client.rb +2 -332
- data/lib/stat-count-client/config_loader.rb +13 -0
- data/lib/stat-count-client/hessian/stat_data_utils.rb +16 -0
- data/lib/stat-count-client/hessian_client.rb +179 -0
- data/lib/stat-count-client/logger_factory.rb +32 -0
- data/lib/stat-count-client/stat_count_data.rb +135 -0
- data/lib/stat-count-client/thrift/collecter_constants.rb +15 -0
- data/lib/stat-count-client/thrift/collecter_types.rb +209 -0
- data/lib/stat-count-client/thrift/remote_simple_count_collecter.rb +1766 -0
- data/lib/stat-count-client/thrift_client.rb +263 -0
- data/lib/stat-count-client/version.rb +1 -1
- data/test/stat_ccount_client_test.rb +76 -87
- data/test/stat_count_client_test.rb +181 -0
- data/test/thrift_count_client_test.rb +181 -0
- metadata +39 -15
- data/Gemfile.lock +0 -14
- data/stat-count-client.gemspec +0 -21
@@ -0,0 +1,1766 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require_relative 'collecter_types'
|
9
|
+
|
10
|
+
module Stat
|
11
|
+
module Count
|
12
|
+
module Thrift
|
13
|
+
module RemoteSimpleCountCollecter
|
14
|
+
class Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def incrBy(name, id, count)
|
18
|
+
send_incrBy(name, id, count)
|
19
|
+
return recv_incrBy()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_incrBy(name, id, count)
|
23
|
+
send_message('incrBy', IncrBy_args, :name => name, :id => id, :count => count)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_incrBy()
|
27
|
+
result = receive_message(IncrBy_result)
|
28
|
+
return result.success unless result.success.nil?
|
29
|
+
raise result.dcex unless result.dcex.nil?
|
30
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'incrBy failed: unknown result')
|
31
|
+
end
|
32
|
+
|
33
|
+
def incrByCountWithDate(dateCount)
|
34
|
+
send_incrByCountWithDate(dateCount)
|
35
|
+
recv_incrByCountWithDate()
|
36
|
+
end
|
37
|
+
|
38
|
+
def send_incrByCountWithDate(dateCount)
|
39
|
+
send_message('incrByCountWithDate', IncrByCountWithDate_args, :dateCount => dateCount)
|
40
|
+
end
|
41
|
+
|
42
|
+
def recv_incrByCountWithDate()
|
43
|
+
result = receive_message(IncrByCountWithDate_result)
|
44
|
+
raise result.dcex unless result.dcex.nil?
|
45
|
+
return
|
46
|
+
end
|
47
|
+
|
48
|
+
def incrByCount(count)
|
49
|
+
send_incrByCount(count)
|
50
|
+
return recv_incrByCount()
|
51
|
+
end
|
52
|
+
|
53
|
+
def send_incrByCount(count)
|
54
|
+
send_message('incrByCount', IncrByCount_args, :count => count)
|
55
|
+
end
|
56
|
+
|
57
|
+
def recv_incrByCount()
|
58
|
+
result = receive_message(IncrByCount_result)
|
59
|
+
return result.success unless result.success.nil?
|
60
|
+
raise result.dcex unless result.dcex.nil?
|
61
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'incrByCount failed: unknown result')
|
62
|
+
end
|
63
|
+
|
64
|
+
def incr(name, id)
|
65
|
+
send_incr(name, id)
|
66
|
+
return recv_incr()
|
67
|
+
end
|
68
|
+
|
69
|
+
def send_incr(name, id)
|
70
|
+
send_message('incr', Incr_args, :name => name, :id => id)
|
71
|
+
end
|
72
|
+
|
73
|
+
def recv_incr()
|
74
|
+
result = receive_message(Incr_result)
|
75
|
+
return result.success unless result.success.nil?
|
76
|
+
raise result.dcex unless result.dcex.nil?
|
77
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'incr failed: unknown result')
|
78
|
+
end
|
79
|
+
|
80
|
+
def incrByWithDate(name, id, count, timeMills)
|
81
|
+
send_incrByWithDate(name, id, count, timeMills)
|
82
|
+
return recv_incrByWithDate()
|
83
|
+
end
|
84
|
+
|
85
|
+
def send_incrByWithDate(name, id, count, timeMills)
|
86
|
+
send_message('incrByWithDate', IncrByWithDate_args, :name => name, :id => id, :count => count, :timeMills => timeMills)
|
87
|
+
end
|
88
|
+
|
89
|
+
def recv_incrByWithDate()
|
90
|
+
result = receive_message(IncrByWithDate_result)
|
91
|
+
return result.success unless result.success.nil?
|
92
|
+
raise result.dcex unless result.dcex.nil?
|
93
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'incrByWithDate failed: unknown result')
|
94
|
+
end
|
95
|
+
|
96
|
+
def decrBy(name, id, count)
|
97
|
+
send_decrBy(name, id, count)
|
98
|
+
return recv_decrBy()
|
99
|
+
end
|
100
|
+
|
101
|
+
def send_decrBy(name, id, count)
|
102
|
+
send_message('decrBy', DecrBy_args, :name => name, :id => id, :count => count)
|
103
|
+
end
|
104
|
+
|
105
|
+
def recv_decrBy()
|
106
|
+
result = receive_message(DecrBy_result)
|
107
|
+
return result.success unless result.success.nil?
|
108
|
+
raise result.dcex unless result.dcex.nil?
|
109
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'decrBy failed: unknown result')
|
110
|
+
end
|
111
|
+
|
112
|
+
def decrByWithDate(name, id, count, date)
|
113
|
+
send_decrByWithDate(name, id, count, date)
|
114
|
+
return recv_decrByWithDate()
|
115
|
+
end
|
116
|
+
|
117
|
+
def send_decrByWithDate(name, id, count, date)
|
118
|
+
send_message('decrByWithDate', DecrByWithDate_args, :name => name, :id => id, :count => count, :date => date)
|
119
|
+
end
|
120
|
+
|
121
|
+
def recv_decrByWithDate()
|
122
|
+
result = receive_message(DecrByWithDate_result)
|
123
|
+
return result.success unless result.success.nil?
|
124
|
+
raise result.dcex unless result.dcex.nil?
|
125
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'decrByWithDate failed: unknown result')
|
126
|
+
end
|
127
|
+
|
128
|
+
def decr(name, id)
|
129
|
+
send_decr(name, id)
|
130
|
+
return recv_decr()
|
131
|
+
end
|
132
|
+
|
133
|
+
def send_decr(name, id)
|
134
|
+
send_message('decr', Decr_args, :name => name, :id => id)
|
135
|
+
end
|
136
|
+
|
137
|
+
def recv_decr()
|
138
|
+
result = receive_message(Decr_result)
|
139
|
+
return result.success unless result.success.nil?
|
140
|
+
raise result.dcex unless result.dcex.nil?
|
141
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'decr failed: unknown result')
|
142
|
+
end
|
143
|
+
|
144
|
+
def decrByCountWithDate(dateCount)
|
145
|
+
send_decrByCountWithDate(dateCount)
|
146
|
+
recv_decrByCountWithDate()
|
147
|
+
end
|
148
|
+
|
149
|
+
def send_decrByCountWithDate(dateCount)
|
150
|
+
send_message('decrByCountWithDate', DecrByCountWithDate_args, :dateCount => dateCount)
|
151
|
+
end
|
152
|
+
|
153
|
+
def recv_decrByCountWithDate()
|
154
|
+
result = receive_message(DecrByCountWithDate_result)
|
155
|
+
raise result.dcex unless result.dcex.nil?
|
156
|
+
return
|
157
|
+
end
|
158
|
+
|
159
|
+
def decrByCount(count)
|
160
|
+
send_decrByCount(count)
|
161
|
+
return recv_decrByCount()
|
162
|
+
end
|
163
|
+
|
164
|
+
def send_decrByCount(count)
|
165
|
+
send_message('decrByCount', DecrByCount_args, :count => count)
|
166
|
+
end
|
167
|
+
|
168
|
+
def recv_decrByCount()
|
169
|
+
result = receive_message(DecrByCount_result)
|
170
|
+
return result.success unless result.success.nil?
|
171
|
+
raise result.dcex unless result.dcex.nil?
|
172
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'decrByCount failed: unknown result')
|
173
|
+
end
|
174
|
+
|
175
|
+
def setByCountWithDate(count)
|
176
|
+
send_setByCountWithDate(count)
|
177
|
+
recv_setByCountWithDate()
|
178
|
+
end
|
179
|
+
|
180
|
+
def send_setByCountWithDate(count)
|
181
|
+
send_message('setByCountWithDate', SetByCountWithDate_args, :count => count)
|
182
|
+
end
|
183
|
+
|
184
|
+
def recv_setByCountWithDate()
|
185
|
+
result = receive_message(SetByCountWithDate_result)
|
186
|
+
raise result.dcex unless result.dcex.nil?
|
187
|
+
return
|
188
|
+
end
|
189
|
+
|
190
|
+
def setByCount(count)
|
191
|
+
send_setByCount(count)
|
192
|
+
recv_setByCount()
|
193
|
+
end
|
194
|
+
|
195
|
+
def send_setByCount(count)
|
196
|
+
send_message('setByCount', SetByCount_args, :count => count)
|
197
|
+
end
|
198
|
+
|
199
|
+
def recv_setByCount()
|
200
|
+
result = receive_message(SetByCount_result)
|
201
|
+
raise result.dcex unless result.dcex.nil?
|
202
|
+
return
|
203
|
+
end
|
204
|
+
|
205
|
+
def setValue(name, id, value)
|
206
|
+
send_setValue(name, id, value)
|
207
|
+
recv_setValue()
|
208
|
+
end
|
209
|
+
|
210
|
+
def send_setValue(name, id, value)
|
211
|
+
send_message('setValue', SetValue_args, :name => name, :id => id, :value => value)
|
212
|
+
end
|
213
|
+
|
214
|
+
def recv_setValue()
|
215
|
+
result = receive_message(SetValue_result)
|
216
|
+
raise result.dcex unless result.dcex.nil?
|
217
|
+
return
|
218
|
+
end
|
219
|
+
|
220
|
+
def setWithDate(name, id, value, timeMills)
|
221
|
+
send_setWithDate(name, id, value, timeMills)
|
222
|
+
recv_setWithDate()
|
223
|
+
end
|
224
|
+
|
225
|
+
def send_setWithDate(name, id, value, timeMills)
|
226
|
+
send_message('setWithDate', SetWithDate_args, :name => name, :id => id, :value => value, :timeMills => timeMills)
|
227
|
+
end
|
228
|
+
|
229
|
+
def recv_setWithDate()
|
230
|
+
result = receive_message(SetWithDate_result)
|
231
|
+
raise result.dcex unless result.dcex.nil?
|
232
|
+
return
|
233
|
+
end
|
234
|
+
|
235
|
+
def reset(name, id)
|
236
|
+
send_reset(name, id)
|
237
|
+
recv_reset()
|
238
|
+
end
|
239
|
+
|
240
|
+
def send_reset(name, id)
|
241
|
+
send_message('reset', Reset_args, :name => name, :id => id)
|
242
|
+
end
|
243
|
+
|
244
|
+
def recv_reset()
|
245
|
+
result = receive_message(Reset_result)
|
246
|
+
raise result.dcex unless result.dcex.nil?
|
247
|
+
return
|
248
|
+
end
|
249
|
+
|
250
|
+
def resetByLimit(name, id, limit)
|
251
|
+
send_resetByLimit(name, id, limit)
|
252
|
+
recv_resetByLimit()
|
253
|
+
end
|
254
|
+
|
255
|
+
def send_resetByLimit(name, id, limit)
|
256
|
+
send_message('resetByLimit', ResetByLimit_args, :name => name, :id => id, :limit => limit)
|
257
|
+
end
|
258
|
+
|
259
|
+
def recv_resetByLimit()
|
260
|
+
result = receive_message(ResetByLimit_result)
|
261
|
+
raise result.dcex unless result.dcex.nil?
|
262
|
+
return
|
263
|
+
end
|
264
|
+
|
265
|
+
def get(name, id)
|
266
|
+
send_get(name, id)
|
267
|
+
return recv_get()
|
268
|
+
end
|
269
|
+
|
270
|
+
def send_get(name, id)
|
271
|
+
send_message('get', Get_args, :name => name, :id => id)
|
272
|
+
end
|
273
|
+
|
274
|
+
def recv_get()
|
275
|
+
result = receive_message(Get_result)
|
276
|
+
return result.success unless result.success.nil?
|
277
|
+
raise result.dcex unless result.dcex.nil?
|
278
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
|
279
|
+
end
|
280
|
+
|
281
|
+
def getByLimit(name, id, limit)
|
282
|
+
send_getByLimit(name, id, limit)
|
283
|
+
return recv_getByLimit()
|
284
|
+
end
|
285
|
+
|
286
|
+
def send_getByLimit(name, id, limit)
|
287
|
+
send_message('getByLimit', GetByLimit_args, :name => name, :id => id, :limit => limit)
|
288
|
+
end
|
289
|
+
|
290
|
+
def recv_getByLimit()
|
291
|
+
result = receive_message(GetByLimit_result)
|
292
|
+
return result.success unless result.success.nil?
|
293
|
+
raise result.dcex unless result.dcex.nil?
|
294
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByLimit failed: unknown result')
|
295
|
+
end
|
296
|
+
|
297
|
+
def getByNamesAndLimit(names, id, limit)
|
298
|
+
send_getByNamesAndLimit(names, id, limit)
|
299
|
+
return recv_getByNamesAndLimit()
|
300
|
+
end
|
301
|
+
|
302
|
+
def send_getByNamesAndLimit(names, id, limit)
|
303
|
+
send_message('getByNamesAndLimit', GetByNamesAndLimit_args, :names => names, :id => id, :limit => limit)
|
304
|
+
end
|
305
|
+
|
306
|
+
def recv_getByNamesAndLimit()
|
307
|
+
result = receive_message(GetByNamesAndLimit_result)
|
308
|
+
return result.success unless result.success.nil?
|
309
|
+
raise result.dcex unless result.dcex.nil?
|
310
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByNamesAndLimit failed: unknown result')
|
311
|
+
end
|
312
|
+
|
313
|
+
def getByNames(names, id)
|
314
|
+
send_getByNames(names, id)
|
315
|
+
return recv_getByNames()
|
316
|
+
end
|
317
|
+
|
318
|
+
def send_getByNames(names, id)
|
319
|
+
send_message('getByNames', GetByNames_args, :names => names, :id => id)
|
320
|
+
end
|
321
|
+
|
322
|
+
def recv_getByNames()
|
323
|
+
result = receive_message(GetByNames_result)
|
324
|
+
return result.success unless result.success.nil?
|
325
|
+
raise result.dcex unless result.dcex.nil?
|
326
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByNames failed: unknown result')
|
327
|
+
end
|
328
|
+
|
329
|
+
def getByIds(name, ids)
|
330
|
+
send_getByIds(name, ids)
|
331
|
+
return recv_getByIds()
|
332
|
+
end
|
333
|
+
|
334
|
+
def send_getByIds(name, ids)
|
335
|
+
send_message('getByIds', GetByIds_args, :name => name, :ids => ids)
|
336
|
+
end
|
337
|
+
|
338
|
+
def recv_getByIds()
|
339
|
+
result = receive_message(GetByIds_result)
|
340
|
+
return result.success unless result.success.nil?
|
341
|
+
raise result.dcex unless result.dcex.nil?
|
342
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByIds failed: unknown result')
|
343
|
+
end
|
344
|
+
|
345
|
+
def getByIdsAndLimit(name, ids, limit)
|
346
|
+
send_getByIdsAndLimit(name, ids, limit)
|
347
|
+
return recv_getByIdsAndLimit()
|
348
|
+
end
|
349
|
+
|
350
|
+
def send_getByIdsAndLimit(name, ids, limit)
|
351
|
+
send_message('getByIdsAndLimit', GetByIdsAndLimit_args, :name => name, :ids => ids, :limit => limit)
|
352
|
+
end
|
353
|
+
|
354
|
+
def recv_getByIdsAndLimit()
|
355
|
+
result = receive_message(GetByIdsAndLimit_result)
|
356
|
+
return result.success unless result.success.nil?
|
357
|
+
raise result.dcex unless result.dcex.nil?
|
358
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByIdsAndLimit failed: unknown result')
|
359
|
+
end
|
360
|
+
|
361
|
+
def getByQuery(query)
|
362
|
+
send_getByQuery(query)
|
363
|
+
return recv_getByQuery()
|
364
|
+
end
|
365
|
+
|
366
|
+
def send_getByQuery(query)
|
367
|
+
send_message('getByQuery', GetByQuery_args, :query => query)
|
368
|
+
end
|
369
|
+
|
370
|
+
def recv_getByQuery()
|
371
|
+
result = receive_message(GetByQuery_result)
|
372
|
+
return result.success unless result.success.nil?
|
373
|
+
raise result.dcex unless result.dcex.nil?
|
374
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByQuery failed: unknown result')
|
375
|
+
end
|
376
|
+
|
377
|
+
def getByDateQuery(query)
|
378
|
+
send_getByDateQuery(query)
|
379
|
+
return recv_getByDateQuery()
|
380
|
+
end
|
381
|
+
|
382
|
+
def send_getByDateQuery(query)
|
383
|
+
send_message('getByDateQuery', GetByDateQuery_args, :query => query)
|
384
|
+
end
|
385
|
+
|
386
|
+
def recv_getByDateQuery()
|
387
|
+
result = receive_message(GetByDateQuery_result)
|
388
|
+
return result.success unless result.success.nil?
|
389
|
+
raise result.dcex unless result.dcex.nil?
|
390
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getByDateQuery failed: unknown result')
|
391
|
+
end
|
392
|
+
|
393
|
+
def delByQuery(query)
|
394
|
+
send_delByQuery(query)
|
395
|
+
recv_delByQuery()
|
396
|
+
end
|
397
|
+
|
398
|
+
def send_delByQuery(query)
|
399
|
+
send_message('delByQuery', DelByQuery_args, :query => query)
|
400
|
+
end
|
401
|
+
|
402
|
+
def recv_delByQuery()
|
403
|
+
result = receive_message(DelByQuery_result)
|
404
|
+
raise result.dcex unless result.dcex.nil?
|
405
|
+
return
|
406
|
+
end
|
407
|
+
|
408
|
+
def delByDateQuery(query)
|
409
|
+
send_delByDateQuery(query)
|
410
|
+
recv_delByDateQuery()
|
411
|
+
end
|
412
|
+
|
413
|
+
def send_delByDateQuery(query)
|
414
|
+
send_message('delByDateQuery', DelByDateQuery_args, :query => query)
|
415
|
+
end
|
416
|
+
|
417
|
+
def recv_delByDateQuery()
|
418
|
+
result = receive_message(DelByDateQuery_result)
|
419
|
+
raise result.dcex unless result.dcex.nil?
|
420
|
+
return
|
421
|
+
end
|
422
|
+
|
423
|
+
def setRecord(name, id, record)
|
424
|
+
send_setRecord(name, id, record)
|
425
|
+
recv_setRecord()
|
426
|
+
end
|
427
|
+
|
428
|
+
def send_setRecord(name, id, record)
|
429
|
+
send_message('setRecord', SetRecord_args, :name => name, :id => id, :record => record)
|
430
|
+
end
|
431
|
+
|
432
|
+
def recv_setRecord()
|
433
|
+
result = receive_message(SetRecord_result)
|
434
|
+
raise result.dcex unless result.dcex.nil?
|
435
|
+
return
|
436
|
+
end
|
437
|
+
|
438
|
+
def delByKey(name, id)
|
439
|
+
send_delByKey(name, id)
|
440
|
+
recv_delByKey()
|
441
|
+
end
|
442
|
+
|
443
|
+
def send_delByKey(name, id)
|
444
|
+
send_message('delByKey', DelByKey_args, :name => name, :id => id)
|
445
|
+
end
|
446
|
+
|
447
|
+
def recv_delByKey()
|
448
|
+
result = receive_message(DelByKey_result)
|
449
|
+
raise result.dcex unless result.dcex.nil?
|
450
|
+
return
|
451
|
+
end
|
452
|
+
|
453
|
+
end
|
454
|
+
|
455
|
+
class Processor
|
456
|
+
include ::Thrift::Processor
|
457
|
+
|
458
|
+
def process_incrBy(seqid, iprot, oprot)
|
459
|
+
args = read_args(iprot, IncrBy_args)
|
460
|
+
result = IncrBy_result.new()
|
461
|
+
begin
|
462
|
+
result.success = @handler.incrBy(args.name, args.id, args.count)
|
463
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
464
|
+
result.dcex = dcex
|
465
|
+
end
|
466
|
+
write_result(result, oprot, 'incrBy', seqid)
|
467
|
+
end
|
468
|
+
|
469
|
+
def process_incrByCountWithDate(seqid, iprot, oprot)
|
470
|
+
args = read_args(iprot, IncrByCountWithDate_args)
|
471
|
+
result = IncrByCountWithDate_result.new()
|
472
|
+
begin
|
473
|
+
@handler.incrByCountWithDate(args.dateCount)
|
474
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
475
|
+
result.dcex = dcex
|
476
|
+
end
|
477
|
+
write_result(result, oprot, 'incrByCountWithDate', seqid)
|
478
|
+
end
|
479
|
+
|
480
|
+
def process_incrByCount(seqid, iprot, oprot)
|
481
|
+
args = read_args(iprot, IncrByCount_args)
|
482
|
+
result = IncrByCount_result.new()
|
483
|
+
begin
|
484
|
+
result.success = @handler.incrByCount(args.count)
|
485
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
486
|
+
result.dcex = dcex
|
487
|
+
end
|
488
|
+
write_result(result, oprot, 'incrByCount', seqid)
|
489
|
+
end
|
490
|
+
|
491
|
+
def process_incr(seqid, iprot, oprot)
|
492
|
+
args = read_args(iprot, Incr_args)
|
493
|
+
result = Incr_result.new()
|
494
|
+
begin
|
495
|
+
result.success = @handler.incr(args.name, args.id)
|
496
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
497
|
+
result.dcex = dcex
|
498
|
+
end
|
499
|
+
write_result(result, oprot, 'incr', seqid)
|
500
|
+
end
|
501
|
+
|
502
|
+
def process_incrByWithDate(seqid, iprot, oprot)
|
503
|
+
args = read_args(iprot, IncrByWithDate_args)
|
504
|
+
result = IncrByWithDate_result.new()
|
505
|
+
begin
|
506
|
+
result.success = @handler.incrByWithDate(args.name, args.id, args.count, args.timeMills)
|
507
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
508
|
+
result.dcex = dcex
|
509
|
+
end
|
510
|
+
write_result(result, oprot, 'incrByWithDate', seqid)
|
511
|
+
end
|
512
|
+
|
513
|
+
def process_decrBy(seqid, iprot, oprot)
|
514
|
+
args = read_args(iprot, DecrBy_args)
|
515
|
+
result = DecrBy_result.new()
|
516
|
+
begin
|
517
|
+
result.success = @handler.decrBy(args.name, args.id, args.count)
|
518
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
519
|
+
result.dcex = dcex
|
520
|
+
end
|
521
|
+
write_result(result, oprot, 'decrBy', seqid)
|
522
|
+
end
|
523
|
+
|
524
|
+
def process_decrByWithDate(seqid, iprot, oprot)
|
525
|
+
args = read_args(iprot, DecrByWithDate_args)
|
526
|
+
result = DecrByWithDate_result.new()
|
527
|
+
begin
|
528
|
+
result.success = @handler.decrByWithDate(args.name, args.id, args.count, args.date)
|
529
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
530
|
+
result.dcex = dcex
|
531
|
+
end
|
532
|
+
write_result(result, oprot, 'decrByWithDate', seqid)
|
533
|
+
end
|
534
|
+
|
535
|
+
def process_decr(seqid, iprot, oprot)
|
536
|
+
args = read_args(iprot, Decr_args)
|
537
|
+
result = Decr_result.new()
|
538
|
+
begin
|
539
|
+
result.success = @handler.decr(args.name, args.id)
|
540
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
541
|
+
result.dcex = dcex
|
542
|
+
end
|
543
|
+
write_result(result, oprot, 'decr', seqid)
|
544
|
+
end
|
545
|
+
|
546
|
+
def process_decrByCountWithDate(seqid, iprot, oprot)
|
547
|
+
args = read_args(iprot, DecrByCountWithDate_args)
|
548
|
+
result = DecrByCountWithDate_result.new()
|
549
|
+
begin
|
550
|
+
@handler.decrByCountWithDate(args.dateCount)
|
551
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
552
|
+
result.dcex = dcex
|
553
|
+
end
|
554
|
+
write_result(result, oprot, 'decrByCountWithDate', seqid)
|
555
|
+
end
|
556
|
+
|
557
|
+
def process_decrByCount(seqid, iprot, oprot)
|
558
|
+
args = read_args(iprot, DecrByCount_args)
|
559
|
+
result = DecrByCount_result.new()
|
560
|
+
begin
|
561
|
+
result.success = @handler.decrByCount(args.count)
|
562
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
563
|
+
result.dcex = dcex
|
564
|
+
end
|
565
|
+
write_result(result, oprot, 'decrByCount', seqid)
|
566
|
+
end
|
567
|
+
|
568
|
+
def process_setByCountWithDate(seqid, iprot, oprot)
|
569
|
+
args = read_args(iprot, SetByCountWithDate_args)
|
570
|
+
result = SetByCountWithDate_result.new()
|
571
|
+
begin
|
572
|
+
@handler.setByCountWithDate(args.count)
|
573
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
574
|
+
result.dcex = dcex
|
575
|
+
end
|
576
|
+
write_result(result, oprot, 'setByCountWithDate', seqid)
|
577
|
+
end
|
578
|
+
|
579
|
+
def process_setByCount(seqid, iprot, oprot)
|
580
|
+
args = read_args(iprot, SetByCount_args)
|
581
|
+
result = SetByCount_result.new()
|
582
|
+
begin
|
583
|
+
@handler.setByCount(args.count)
|
584
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
585
|
+
result.dcex = dcex
|
586
|
+
end
|
587
|
+
write_result(result, oprot, 'setByCount', seqid)
|
588
|
+
end
|
589
|
+
|
590
|
+
def process_setValue(seqid, iprot, oprot)
|
591
|
+
args = read_args(iprot, SetValue_args)
|
592
|
+
result = SetValue_result.new()
|
593
|
+
begin
|
594
|
+
@handler.setValue(args.name, args.id, args.value)
|
595
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
596
|
+
result.dcex = dcex
|
597
|
+
end
|
598
|
+
write_result(result, oprot, 'setValue', seqid)
|
599
|
+
end
|
600
|
+
|
601
|
+
def process_setWithDate(seqid, iprot, oprot)
|
602
|
+
args = read_args(iprot, SetWithDate_args)
|
603
|
+
result = SetWithDate_result.new()
|
604
|
+
begin
|
605
|
+
@handler.setWithDate(args.name, args.id, args.value, args.timeMills)
|
606
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
607
|
+
result.dcex = dcex
|
608
|
+
end
|
609
|
+
write_result(result, oprot, 'setWithDate', seqid)
|
610
|
+
end
|
611
|
+
|
612
|
+
def process_reset(seqid, iprot, oprot)
|
613
|
+
args = read_args(iprot, Reset_args)
|
614
|
+
result = Reset_result.new()
|
615
|
+
begin
|
616
|
+
@handler.reset(args.name, args.id)
|
617
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
618
|
+
result.dcex = dcex
|
619
|
+
end
|
620
|
+
write_result(result, oprot, 'reset', seqid)
|
621
|
+
end
|
622
|
+
|
623
|
+
def process_resetByLimit(seqid, iprot, oprot)
|
624
|
+
args = read_args(iprot, ResetByLimit_args)
|
625
|
+
result = ResetByLimit_result.new()
|
626
|
+
begin
|
627
|
+
@handler.resetByLimit(args.name, args.id, args.limit)
|
628
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
629
|
+
result.dcex = dcex
|
630
|
+
end
|
631
|
+
write_result(result, oprot, 'resetByLimit', seqid)
|
632
|
+
end
|
633
|
+
|
634
|
+
def process_get(seqid, iprot, oprot)
|
635
|
+
args = read_args(iprot, Get_args)
|
636
|
+
result = Get_result.new()
|
637
|
+
begin
|
638
|
+
result.success = @handler.get(args.name, args.id)
|
639
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
640
|
+
result.dcex = dcex
|
641
|
+
end
|
642
|
+
write_result(result, oprot, 'get', seqid)
|
643
|
+
end
|
644
|
+
|
645
|
+
def process_getByLimit(seqid, iprot, oprot)
|
646
|
+
args = read_args(iprot, GetByLimit_args)
|
647
|
+
result = GetByLimit_result.new()
|
648
|
+
begin
|
649
|
+
result.success = @handler.getByLimit(args.name, args.id, args.limit)
|
650
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
651
|
+
result.dcex = dcex
|
652
|
+
end
|
653
|
+
write_result(result, oprot, 'getByLimit', seqid)
|
654
|
+
end
|
655
|
+
|
656
|
+
def process_getByNamesAndLimit(seqid, iprot, oprot)
|
657
|
+
args = read_args(iprot, GetByNamesAndLimit_args)
|
658
|
+
result = GetByNamesAndLimit_result.new()
|
659
|
+
begin
|
660
|
+
result.success = @handler.getByNamesAndLimit(args.names, args.id, args.limit)
|
661
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
662
|
+
result.dcex = dcex
|
663
|
+
end
|
664
|
+
write_result(result, oprot, 'getByNamesAndLimit', seqid)
|
665
|
+
end
|
666
|
+
|
667
|
+
def process_getByNames(seqid, iprot, oprot)
|
668
|
+
args = read_args(iprot, GetByNames_args)
|
669
|
+
result = GetByNames_result.new()
|
670
|
+
begin
|
671
|
+
result.success = @handler.getByNames(args.names, args.id)
|
672
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
673
|
+
result.dcex = dcex
|
674
|
+
end
|
675
|
+
write_result(result, oprot, 'getByNames', seqid)
|
676
|
+
end
|
677
|
+
|
678
|
+
def process_getByIds(seqid, iprot, oprot)
|
679
|
+
args = read_args(iprot, GetByIds_args)
|
680
|
+
result = GetByIds_result.new()
|
681
|
+
begin
|
682
|
+
result.success = @handler.getByIds(args.name, args.ids)
|
683
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
684
|
+
result.dcex = dcex
|
685
|
+
end
|
686
|
+
write_result(result, oprot, 'getByIds', seqid)
|
687
|
+
end
|
688
|
+
|
689
|
+
def process_getByIdsAndLimit(seqid, iprot, oprot)
|
690
|
+
args = read_args(iprot, GetByIdsAndLimit_args)
|
691
|
+
result = GetByIdsAndLimit_result.new()
|
692
|
+
begin
|
693
|
+
result.success = @handler.getByIdsAndLimit(args.name, args.ids, args.limit)
|
694
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
695
|
+
result.dcex = dcex
|
696
|
+
end
|
697
|
+
write_result(result, oprot, 'getByIdsAndLimit', seqid)
|
698
|
+
end
|
699
|
+
|
700
|
+
def process_getByQuery(seqid, iprot, oprot)
|
701
|
+
args = read_args(iprot, GetByQuery_args)
|
702
|
+
result = GetByQuery_result.new()
|
703
|
+
begin
|
704
|
+
result.success = @handler.getByQuery(args.query)
|
705
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
706
|
+
result.dcex = dcex
|
707
|
+
end
|
708
|
+
write_result(result, oprot, 'getByQuery', seqid)
|
709
|
+
end
|
710
|
+
|
711
|
+
def process_getByDateQuery(seqid, iprot, oprot)
|
712
|
+
args = read_args(iprot, GetByDateQuery_args)
|
713
|
+
result = GetByDateQuery_result.new()
|
714
|
+
begin
|
715
|
+
result.success = @handler.getByDateQuery(args.query)
|
716
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
717
|
+
result.dcex = dcex
|
718
|
+
end
|
719
|
+
write_result(result, oprot, 'getByDateQuery', seqid)
|
720
|
+
end
|
721
|
+
|
722
|
+
def process_delByQuery(seqid, iprot, oprot)
|
723
|
+
args = read_args(iprot, DelByQuery_args)
|
724
|
+
result = DelByQuery_result.new()
|
725
|
+
begin
|
726
|
+
@handler.delByQuery(args.query)
|
727
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
728
|
+
result.dcex = dcex
|
729
|
+
end
|
730
|
+
write_result(result, oprot, 'delByQuery', seqid)
|
731
|
+
end
|
732
|
+
|
733
|
+
def process_delByDateQuery(seqid, iprot, oprot)
|
734
|
+
args = read_args(iprot, DelByDateQuery_args)
|
735
|
+
result = DelByDateQuery_result.new()
|
736
|
+
begin
|
737
|
+
@handler.delByDateQuery(args.query)
|
738
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
739
|
+
result.dcex = dcex
|
740
|
+
end
|
741
|
+
write_result(result, oprot, 'delByDateQuery', seqid)
|
742
|
+
end
|
743
|
+
|
744
|
+
def process_setRecord(seqid, iprot, oprot)
|
745
|
+
args = read_args(iprot, SetRecord_args)
|
746
|
+
result = SetRecord_result.new()
|
747
|
+
begin
|
748
|
+
@handler.setRecord(args.name, args.id, args.record)
|
749
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
750
|
+
result.dcex = dcex
|
751
|
+
end
|
752
|
+
write_result(result, oprot, 'setRecord', seqid)
|
753
|
+
end
|
754
|
+
|
755
|
+
def process_delByKey(seqid, iprot, oprot)
|
756
|
+
args = read_args(iprot, DelByKey_args)
|
757
|
+
result = DelByKey_result.new()
|
758
|
+
begin
|
759
|
+
@handler.delByKey(args.name, args.id)
|
760
|
+
rescue ::Stat::Count::Thrift::DataCollectionException => dcex
|
761
|
+
result.dcex = dcex
|
762
|
+
end
|
763
|
+
write_result(result, oprot, 'delByKey', seqid)
|
764
|
+
end
|
765
|
+
|
766
|
+
end
|
767
|
+
|
768
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
769
|
+
|
770
|
+
class IncrBy_args
|
771
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
772
|
+
NAME = 1
|
773
|
+
ID = 2
|
774
|
+
COUNT = 3
|
775
|
+
|
776
|
+
FIELDS = {
|
777
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
778
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
779
|
+
COUNT => {:type => ::Thrift::Types::I32, :name => 'count'}
|
780
|
+
}
|
781
|
+
|
782
|
+
def struct_fields; FIELDS; end
|
783
|
+
|
784
|
+
def validate
|
785
|
+
end
|
786
|
+
|
787
|
+
::Thrift::Struct.generate_accessors self
|
788
|
+
end
|
789
|
+
|
790
|
+
class IncrBy_result
|
791
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
792
|
+
SUCCESS = 0
|
793
|
+
DCEX = 1
|
794
|
+
|
795
|
+
FIELDS = {
|
796
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
797
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
798
|
+
}
|
799
|
+
|
800
|
+
def struct_fields; FIELDS; end
|
801
|
+
|
802
|
+
def validate
|
803
|
+
end
|
804
|
+
|
805
|
+
::Thrift::Struct.generate_accessors self
|
806
|
+
end
|
807
|
+
|
808
|
+
class IncrByCountWithDate_args
|
809
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
810
|
+
DATECOUNT = 1
|
811
|
+
|
812
|
+
FIELDS = {
|
813
|
+
DATECOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'dateCount', :class => ::Stat::Count::Thrift::DateCount}
|
814
|
+
}
|
815
|
+
|
816
|
+
def struct_fields; FIELDS; end
|
817
|
+
|
818
|
+
def validate
|
819
|
+
end
|
820
|
+
|
821
|
+
::Thrift::Struct.generate_accessors self
|
822
|
+
end
|
823
|
+
|
824
|
+
class IncrByCountWithDate_result
|
825
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
826
|
+
DCEX = 1
|
827
|
+
|
828
|
+
FIELDS = {
|
829
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
830
|
+
}
|
831
|
+
|
832
|
+
def struct_fields; FIELDS; end
|
833
|
+
|
834
|
+
def validate
|
835
|
+
end
|
836
|
+
|
837
|
+
::Thrift::Struct.generate_accessors self
|
838
|
+
end
|
839
|
+
|
840
|
+
class IncrByCount_args
|
841
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
842
|
+
COUNT = 1
|
843
|
+
|
844
|
+
FIELDS = {
|
845
|
+
COUNT => {:type => ::Thrift::Types::STRUCT, :name => 'count', :class => ::Stat::Count::Thrift::SimpleCount}
|
846
|
+
}
|
847
|
+
|
848
|
+
def struct_fields; FIELDS; end
|
849
|
+
|
850
|
+
def validate
|
851
|
+
end
|
852
|
+
|
853
|
+
::Thrift::Struct.generate_accessors self
|
854
|
+
end
|
855
|
+
|
856
|
+
class IncrByCount_result
|
857
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
858
|
+
SUCCESS = 0
|
859
|
+
DCEX = 1
|
860
|
+
|
861
|
+
FIELDS = {
|
862
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Stat::Count::Thrift::CountResult},
|
863
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
864
|
+
}
|
865
|
+
|
866
|
+
def struct_fields; FIELDS; end
|
867
|
+
|
868
|
+
def validate
|
869
|
+
end
|
870
|
+
|
871
|
+
::Thrift::Struct.generate_accessors self
|
872
|
+
end
|
873
|
+
|
874
|
+
class Incr_args
|
875
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
876
|
+
NAME = 1
|
877
|
+
ID = 2
|
878
|
+
|
879
|
+
FIELDS = {
|
880
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
881
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
882
|
+
}
|
883
|
+
|
884
|
+
def struct_fields; FIELDS; end
|
885
|
+
|
886
|
+
def validate
|
887
|
+
end
|
888
|
+
|
889
|
+
::Thrift::Struct.generate_accessors self
|
890
|
+
end
|
891
|
+
|
892
|
+
class Incr_result
|
893
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
894
|
+
SUCCESS = 0
|
895
|
+
DCEX = 1
|
896
|
+
|
897
|
+
FIELDS = {
|
898
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
899
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
900
|
+
}
|
901
|
+
|
902
|
+
def struct_fields; FIELDS; end
|
903
|
+
|
904
|
+
def validate
|
905
|
+
end
|
906
|
+
|
907
|
+
::Thrift::Struct.generate_accessors self
|
908
|
+
end
|
909
|
+
|
910
|
+
class IncrByWithDate_args
|
911
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
912
|
+
NAME = 1
|
913
|
+
ID = 2
|
914
|
+
COUNT = 3
|
915
|
+
TIMEMILLS = 4
|
916
|
+
|
917
|
+
FIELDS = {
|
918
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
919
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
920
|
+
COUNT => {:type => ::Thrift::Types::I32, :name => 'count'},
|
921
|
+
TIMEMILLS => {:type => ::Thrift::Types::I64, :name => 'timeMills'}
|
922
|
+
}
|
923
|
+
|
924
|
+
def struct_fields; FIELDS; end
|
925
|
+
|
926
|
+
def validate
|
927
|
+
end
|
928
|
+
|
929
|
+
::Thrift::Struct.generate_accessors self
|
930
|
+
end
|
931
|
+
|
932
|
+
class IncrByWithDate_result
|
933
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
934
|
+
SUCCESS = 0
|
935
|
+
DCEX = 1
|
936
|
+
|
937
|
+
FIELDS = {
|
938
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
939
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
940
|
+
}
|
941
|
+
|
942
|
+
def struct_fields; FIELDS; end
|
943
|
+
|
944
|
+
def validate
|
945
|
+
end
|
946
|
+
|
947
|
+
::Thrift::Struct.generate_accessors self
|
948
|
+
end
|
949
|
+
|
950
|
+
class DecrBy_args
|
951
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
952
|
+
NAME = 1
|
953
|
+
ID = 2
|
954
|
+
COUNT = 3
|
955
|
+
|
956
|
+
FIELDS = {
|
957
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
958
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
959
|
+
COUNT => {:type => ::Thrift::Types::I32, :name => 'count'}
|
960
|
+
}
|
961
|
+
|
962
|
+
def struct_fields; FIELDS; end
|
963
|
+
|
964
|
+
def validate
|
965
|
+
end
|
966
|
+
|
967
|
+
::Thrift::Struct.generate_accessors self
|
968
|
+
end
|
969
|
+
|
970
|
+
class DecrBy_result
|
971
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
972
|
+
SUCCESS = 0
|
973
|
+
DCEX = 1
|
974
|
+
|
975
|
+
FIELDS = {
|
976
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
977
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
978
|
+
}
|
979
|
+
|
980
|
+
def struct_fields; FIELDS; end
|
981
|
+
|
982
|
+
def validate
|
983
|
+
end
|
984
|
+
|
985
|
+
::Thrift::Struct.generate_accessors self
|
986
|
+
end
|
987
|
+
|
988
|
+
class DecrByWithDate_args
|
989
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
990
|
+
NAME = 1
|
991
|
+
ID = 2
|
992
|
+
COUNT = 3
|
993
|
+
DATE = 4
|
994
|
+
|
995
|
+
FIELDS = {
|
996
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
997
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
998
|
+
COUNT => {:type => ::Thrift::Types::I32, :name => 'count'},
|
999
|
+
DATE => {:type => ::Thrift::Types::I64, :name => 'date'}
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
def struct_fields; FIELDS; end
|
1003
|
+
|
1004
|
+
def validate
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
::Thrift::Struct.generate_accessors self
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
class DecrByWithDate_result
|
1011
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1012
|
+
SUCCESS = 0
|
1013
|
+
DCEX = 1
|
1014
|
+
|
1015
|
+
FIELDS = {
|
1016
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
1017
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
def struct_fields; FIELDS; end
|
1021
|
+
|
1022
|
+
def validate
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
::Thrift::Struct.generate_accessors self
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
class Decr_args
|
1029
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1030
|
+
NAME = 1
|
1031
|
+
ID = 2
|
1032
|
+
|
1033
|
+
FIELDS = {
|
1034
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1035
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
def struct_fields; FIELDS; end
|
1039
|
+
|
1040
|
+
def validate
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
::Thrift::Struct.generate_accessors self
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
class Decr_result
|
1047
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1048
|
+
SUCCESS = 0
|
1049
|
+
DCEX = 1
|
1050
|
+
|
1051
|
+
FIELDS = {
|
1052
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
1053
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
def struct_fields; FIELDS; end
|
1057
|
+
|
1058
|
+
def validate
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
::Thrift::Struct.generate_accessors self
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
class DecrByCountWithDate_args
|
1065
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1066
|
+
DATECOUNT = 1
|
1067
|
+
|
1068
|
+
FIELDS = {
|
1069
|
+
DATECOUNT => {:type => ::Thrift::Types::STRUCT, :name => 'dateCount', :class => ::Stat::Count::Thrift::DateCount}
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
def struct_fields; FIELDS; end
|
1073
|
+
|
1074
|
+
def validate
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
::Thrift::Struct.generate_accessors self
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
class DecrByCountWithDate_result
|
1081
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1082
|
+
DCEX = 1
|
1083
|
+
|
1084
|
+
FIELDS = {
|
1085
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
def struct_fields; FIELDS; end
|
1089
|
+
|
1090
|
+
def validate
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
::Thrift::Struct.generate_accessors self
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
class DecrByCount_args
|
1097
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1098
|
+
COUNT = 1
|
1099
|
+
|
1100
|
+
FIELDS = {
|
1101
|
+
COUNT => {:type => ::Thrift::Types::STRUCT, :name => 'count', :class => ::Stat::Count::Thrift::SimpleCount}
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
def struct_fields; FIELDS; end
|
1105
|
+
|
1106
|
+
def validate
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
::Thrift::Struct.generate_accessors self
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
class DecrByCount_result
|
1113
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1114
|
+
SUCCESS = 0
|
1115
|
+
DCEX = 1
|
1116
|
+
|
1117
|
+
FIELDS = {
|
1118
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Stat::Count::Thrift::CountResult},
|
1119
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
def struct_fields; FIELDS; end
|
1123
|
+
|
1124
|
+
def validate
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
::Thrift::Struct.generate_accessors self
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
class SetByCountWithDate_args
|
1131
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1132
|
+
COUNT = 1
|
1133
|
+
|
1134
|
+
FIELDS = {
|
1135
|
+
COUNT => {:type => ::Thrift::Types::STRUCT, :name => 'count', :class => ::Stat::Count::Thrift::DateCount}
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
def struct_fields; FIELDS; end
|
1139
|
+
|
1140
|
+
def validate
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
::Thrift::Struct.generate_accessors self
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
class SetByCountWithDate_result
|
1147
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1148
|
+
DCEX = 1
|
1149
|
+
|
1150
|
+
FIELDS = {
|
1151
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1152
|
+
}
|
1153
|
+
|
1154
|
+
def struct_fields; FIELDS; end
|
1155
|
+
|
1156
|
+
def validate
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
::Thrift::Struct.generate_accessors self
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
class SetByCount_args
|
1163
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1164
|
+
COUNT = 1
|
1165
|
+
|
1166
|
+
FIELDS = {
|
1167
|
+
COUNT => {:type => ::Thrift::Types::STRUCT, :name => 'count', :class => ::Stat::Count::Thrift::SimpleCount}
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
def struct_fields; FIELDS; end
|
1171
|
+
|
1172
|
+
def validate
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
::Thrift::Struct.generate_accessors self
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
class SetByCount_result
|
1179
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1180
|
+
DCEX = 1
|
1181
|
+
|
1182
|
+
FIELDS = {
|
1183
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1184
|
+
}
|
1185
|
+
|
1186
|
+
def struct_fields; FIELDS; end
|
1187
|
+
|
1188
|
+
def validate
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
::Thrift::Struct.generate_accessors self
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
class SetValue_args
|
1195
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1196
|
+
NAME = 1
|
1197
|
+
ID = 2
|
1198
|
+
VALUE = 3
|
1199
|
+
|
1200
|
+
FIELDS = {
|
1201
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1202
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
1203
|
+
VALUE => {:type => ::Thrift::Types::I64, :name => 'value'}
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
def struct_fields; FIELDS; end
|
1207
|
+
|
1208
|
+
def validate
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
::Thrift::Struct.generate_accessors self
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
class SetValue_result
|
1215
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1216
|
+
DCEX = 1
|
1217
|
+
|
1218
|
+
FIELDS = {
|
1219
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1220
|
+
}
|
1221
|
+
|
1222
|
+
def struct_fields; FIELDS; end
|
1223
|
+
|
1224
|
+
def validate
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
::Thrift::Struct.generate_accessors self
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
class SetWithDate_args
|
1231
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1232
|
+
NAME = 1
|
1233
|
+
ID = 2
|
1234
|
+
VALUE = 3
|
1235
|
+
TIMEMILLS = 4
|
1236
|
+
|
1237
|
+
FIELDS = {
|
1238
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1239
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
1240
|
+
VALUE => {:type => ::Thrift::Types::I64, :name => 'value'},
|
1241
|
+
TIMEMILLS => {:type => ::Thrift::Types::I64, :name => 'timeMills'}
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
def struct_fields; FIELDS; end
|
1245
|
+
|
1246
|
+
def validate
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
::Thrift::Struct.generate_accessors self
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
class SetWithDate_result
|
1253
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1254
|
+
DCEX = 1
|
1255
|
+
|
1256
|
+
FIELDS = {
|
1257
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1258
|
+
}
|
1259
|
+
|
1260
|
+
def struct_fields; FIELDS; end
|
1261
|
+
|
1262
|
+
def validate
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
::Thrift::Struct.generate_accessors self
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
class Reset_args
|
1269
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1270
|
+
NAME = 1
|
1271
|
+
ID = 2
|
1272
|
+
|
1273
|
+
FIELDS = {
|
1274
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1275
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
def struct_fields; FIELDS; end
|
1279
|
+
|
1280
|
+
def validate
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
::Thrift::Struct.generate_accessors self
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
class Reset_result
|
1287
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1288
|
+
DCEX = 1
|
1289
|
+
|
1290
|
+
FIELDS = {
|
1291
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
def struct_fields; FIELDS; end
|
1295
|
+
|
1296
|
+
def validate
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
::Thrift::Struct.generate_accessors self
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
class ResetByLimit_args
|
1303
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1304
|
+
NAME = 1
|
1305
|
+
ID = 2
|
1306
|
+
LIMIT = 3
|
1307
|
+
|
1308
|
+
FIELDS = {
|
1309
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1310
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
1311
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
def struct_fields; FIELDS; end
|
1315
|
+
|
1316
|
+
def validate
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
::Thrift::Struct.generate_accessors self
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
class ResetByLimit_result
|
1323
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1324
|
+
DCEX = 1
|
1325
|
+
|
1326
|
+
FIELDS = {
|
1327
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
def struct_fields; FIELDS; end
|
1331
|
+
|
1332
|
+
def validate
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
::Thrift::Struct.generate_accessors self
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
class Get_args
|
1339
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1340
|
+
NAME = 1
|
1341
|
+
ID = 2
|
1342
|
+
|
1343
|
+
FIELDS = {
|
1344
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1345
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
def struct_fields; FIELDS; end
|
1349
|
+
|
1350
|
+
def validate
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
::Thrift::Struct.generate_accessors self
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
class Get_result
|
1357
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1358
|
+
SUCCESS = 0
|
1359
|
+
DCEX = 1
|
1360
|
+
|
1361
|
+
FIELDS = {
|
1362
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
1363
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
def struct_fields; FIELDS; end
|
1367
|
+
|
1368
|
+
def validate
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
::Thrift::Struct.generate_accessors self
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
class GetByLimit_args
|
1375
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1376
|
+
NAME = 1
|
1377
|
+
ID = 2
|
1378
|
+
LIMIT = 3
|
1379
|
+
|
1380
|
+
FIELDS = {
|
1381
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1382
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
1383
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
def struct_fields; FIELDS; end
|
1387
|
+
|
1388
|
+
def validate
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
::Thrift::Struct.generate_accessors self
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
class GetByLimit_result
|
1395
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1396
|
+
SUCCESS = 0
|
1397
|
+
DCEX = 1
|
1398
|
+
|
1399
|
+
FIELDS = {
|
1400
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
1401
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
def struct_fields; FIELDS; end
|
1405
|
+
|
1406
|
+
def validate
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
::Thrift::Struct.generate_accessors self
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
class GetByNamesAndLimit_args
|
1413
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1414
|
+
NAMES = 1
|
1415
|
+
ID = 2
|
1416
|
+
LIMIT = 3
|
1417
|
+
|
1418
|
+
FIELDS = {
|
1419
|
+
NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRING}},
|
1420
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
1421
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
1422
|
+
}
|
1423
|
+
|
1424
|
+
def struct_fields; FIELDS; end
|
1425
|
+
|
1426
|
+
def validate
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
::Thrift::Struct.generate_accessors self
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
class GetByNamesAndLimit_result
|
1433
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1434
|
+
SUCCESS = 0
|
1435
|
+
DCEX = 1
|
1436
|
+
|
1437
|
+
FIELDS = {
|
1438
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
|
1439
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1440
|
+
}
|
1441
|
+
|
1442
|
+
def struct_fields; FIELDS; end
|
1443
|
+
|
1444
|
+
def validate
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
::Thrift::Struct.generate_accessors self
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
class GetByNames_args
|
1451
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1452
|
+
NAMES = 1
|
1453
|
+
ID = 2
|
1454
|
+
|
1455
|
+
FIELDS = {
|
1456
|
+
NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRING}},
|
1457
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
def struct_fields; FIELDS; end
|
1461
|
+
|
1462
|
+
def validate
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
::Thrift::Struct.generate_accessors self
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
class GetByNames_result
|
1469
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1470
|
+
SUCCESS = 0
|
1471
|
+
DCEX = 1
|
1472
|
+
|
1473
|
+
FIELDS = {
|
1474
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
|
1475
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1476
|
+
}
|
1477
|
+
|
1478
|
+
def struct_fields; FIELDS; end
|
1479
|
+
|
1480
|
+
def validate
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
::Thrift::Struct.generate_accessors self
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
class GetByIds_args
|
1487
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1488
|
+
NAME = 1
|
1489
|
+
IDS = 2
|
1490
|
+
|
1491
|
+
FIELDS = {
|
1492
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1493
|
+
IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::STRING}}
|
1494
|
+
}
|
1495
|
+
|
1496
|
+
def struct_fields; FIELDS; end
|
1497
|
+
|
1498
|
+
def validate
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
::Thrift::Struct.generate_accessors self
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
class GetByIds_result
|
1505
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1506
|
+
SUCCESS = 0
|
1507
|
+
DCEX = 1
|
1508
|
+
|
1509
|
+
FIELDS = {
|
1510
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
|
1511
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1512
|
+
}
|
1513
|
+
|
1514
|
+
def struct_fields; FIELDS; end
|
1515
|
+
|
1516
|
+
def validate
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
::Thrift::Struct.generate_accessors self
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
class GetByIdsAndLimit_args
|
1523
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1524
|
+
NAME = 1
|
1525
|
+
IDS = 2
|
1526
|
+
LIMIT = 3
|
1527
|
+
|
1528
|
+
FIELDS = {
|
1529
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1530
|
+
IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::STRING}},
|
1531
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
1532
|
+
}
|
1533
|
+
|
1534
|
+
def struct_fields; FIELDS; end
|
1535
|
+
|
1536
|
+
def validate
|
1537
|
+
end
|
1538
|
+
|
1539
|
+
::Thrift::Struct.generate_accessors self
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
class GetByIdsAndLimit_result
|
1543
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1544
|
+
SUCCESS = 0
|
1545
|
+
DCEX = 1
|
1546
|
+
|
1547
|
+
FIELDS = {
|
1548
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
|
1549
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
def struct_fields; FIELDS; end
|
1553
|
+
|
1554
|
+
def validate
|
1555
|
+
end
|
1556
|
+
|
1557
|
+
::Thrift::Struct.generate_accessors self
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
class GetByQuery_args
|
1561
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1562
|
+
QUERY = 1
|
1563
|
+
|
1564
|
+
FIELDS = {
|
1565
|
+
QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::Stat::Count::Thrift::SimpleCountQuery}
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
def struct_fields; FIELDS; end
|
1569
|
+
|
1570
|
+
def validate
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
::Thrift::Struct.generate_accessors self
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
class GetByQuery_result
|
1577
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1578
|
+
SUCCESS = 0
|
1579
|
+
DCEX = 1
|
1580
|
+
|
1581
|
+
FIELDS = {
|
1582
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Stat::Count::Thrift::CountResult},
|
1583
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1584
|
+
}
|
1585
|
+
|
1586
|
+
def struct_fields; FIELDS; end
|
1587
|
+
|
1588
|
+
def validate
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
::Thrift::Struct.generate_accessors self
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
class GetByDateQuery_args
|
1595
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1596
|
+
QUERY = 1
|
1597
|
+
|
1598
|
+
FIELDS = {
|
1599
|
+
QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::Stat::Count::Thrift::DateCountQuery}
|
1600
|
+
}
|
1601
|
+
|
1602
|
+
def struct_fields; FIELDS; end
|
1603
|
+
|
1604
|
+
def validate
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
::Thrift::Struct.generate_accessors self
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
class GetByDateQuery_result
|
1611
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1612
|
+
SUCCESS = 0
|
1613
|
+
DCEX = 1
|
1614
|
+
|
1615
|
+
FIELDS = {
|
1616
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Stat::Count::Thrift::CountResult},
|
1617
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
def struct_fields; FIELDS; end
|
1621
|
+
|
1622
|
+
def validate
|
1623
|
+
end
|
1624
|
+
|
1625
|
+
::Thrift::Struct.generate_accessors self
|
1626
|
+
end
|
1627
|
+
|
1628
|
+
class DelByQuery_args
|
1629
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1630
|
+
QUERY = 1
|
1631
|
+
|
1632
|
+
FIELDS = {
|
1633
|
+
QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::Stat::Count::Thrift::SimpleCountQuery}
|
1634
|
+
}
|
1635
|
+
|
1636
|
+
def struct_fields; FIELDS; end
|
1637
|
+
|
1638
|
+
def validate
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
::Thrift::Struct.generate_accessors self
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
class DelByQuery_result
|
1645
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1646
|
+
DCEX = 1
|
1647
|
+
|
1648
|
+
FIELDS = {
|
1649
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
def struct_fields; FIELDS; end
|
1653
|
+
|
1654
|
+
def validate
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
::Thrift::Struct.generate_accessors self
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
class DelByDateQuery_args
|
1661
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1662
|
+
QUERY = 1
|
1663
|
+
|
1664
|
+
FIELDS = {
|
1665
|
+
QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::Stat::Count::Thrift::DateCountQuery}
|
1666
|
+
}
|
1667
|
+
|
1668
|
+
def struct_fields; FIELDS; end
|
1669
|
+
|
1670
|
+
def validate
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
::Thrift::Struct.generate_accessors self
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
class DelByDateQuery_result
|
1677
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1678
|
+
DCEX = 1
|
1679
|
+
|
1680
|
+
FIELDS = {
|
1681
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1682
|
+
}
|
1683
|
+
|
1684
|
+
def struct_fields; FIELDS; end
|
1685
|
+
|
1686
|
+
def validate
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
::Thrift::Struct.generate_accessors self
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
class SetRecord_args
|
1693
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1694
|
+
NAME = 1
|
1695
|
+
ID = 2
|
1696
|
+
RECORD = 3
|
1697
|
+
|
1698
|
+
FIELDS = {
|
1699
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1700
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
1701
|
+
RECORD => {:type => ::Thrift::Types::STRUCT, :name => 'record', :class => ::Stat::Count::Thrift::Record}
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
def struct_fields; FIELDS; end
|
1705
|
+
|
1706
|
+
def validate
|
1707
|
+
end
|
1708
|
+
|
1709
|
+
::Thrift::Struct.generate_accessors self
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
class SetRecord_result
|
1713
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1714
|
+
DCEX = 1
|
1715
|
+
|
1716
|
+
FIELDS = {
|
1717
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1718
|
+
}
|
1719
|
+
|
1720
|
+
def struct_fields; FIELDS; end
|
1721
|
+
|
1722
|
+
def validate
|
1723
|
+
end
|
1724
|
+
|
1725
|
+
::Thrift::Struct.generate_accessors self
|
1726
|
+
end
|
1727
|
+
|
1728
|
+
class DelByKey_args
|
1729
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1730
|
+
NAME = 1
|
1731
|
+
ID = 2
|
1732
|
+
|
1733
|
+
FIELDS = {
|
1734
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1735
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'}
|
1736
|
+
}
|
1737
|
+
|
1738
|
+
def struct_fields; FIELDS; end
|
1739
|
+
|
1740
|
+
def validate
|
1741
|
+
end
|
1742
|
+
|
1743
|
+
::Thrift::Struct.generate_accessors self
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
class DelByKey_result
|
1747
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1748
|
+
DCEX = 1
|
1749
|
+
|
1750
|
+
FIELDS = {
|
1751
|
+
DCEX => {:type => ::Thrift::Types::STRUCT, :name => 'dcex', :class => ::Stat::Count::Thrift::DataCollectionException}
|
1752
|
+
}
|
1753
|
+
|
1754
|
+
def struct_fields; FIELDS; end
|
1755
|
+
|
1756
|
+
def validate
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
::Thrift::Struct.generate_accessors self
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
end
|
1765
|
+
end
|
1766
|
+
end
|