elephant-driver 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1466 @@
1
+ #
2
+ # Autogenerated by Thrift
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'hadoop_service_base'
9
+ require 'jobtracker_types'
10
+
11
+ module Hadoop
12
+ module API
13
+ module Jobtracker
14
+ module Jobtracker
15
+ class Client < Hadoop::API::HadoopServiceBase::Client
16
+ include ::Thrift::Client
17
+
18
+ def getJobTrackerName(ctx)
19
+ send_getJobTrackerName(ctx)
20
+ return recv_getJobTrackerName()
21
+ end
22
+
23
+ def send_getJobTrackerName(ctx)
24
+ send_message('getJobTrackerName', GetJobTrackerName_args, :ctx => ctx)
25
+ end
26
+
27
+ def recv_getJobTrackerName()
28
+ result = receive_message(GetJobTrackerName_result)
29
+ return result.success unless result.success.nil?
30
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getJobTrackerName failed: unknown result')
31
+ end
32
+
33
+ def getClusterStatus(ctx)
34
+ send_getClusterStatus(ctx)
35
+ return recv_getClusterStatus()
36
+ end
37
+
38
+ def send_getClusterStatus(ctx)
39
+ send_message('getClusterStatus', GetClusterStatus_args, :ctx => ctx)
40
+ end
41
+
42
+ def recv_getClusterStatus()
43
+ result = receive_message(GetClusterStatus_result)
44
+ return result.success unless result.success.nil?
45
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getClusterStatus failed: unknown result')
46
+ end
47
+
48
+ def getQueues(ctx)
49
+ send_getQueues(ctx)
50
+ return recv_getQueues()
51
+ end
52
+
53
+ def send_getQueues(ctx)
54
+ send_message('getQueues', GetQueues_args, :ctx => ctx)
55
+ end
56
+
57
+ def recv_getQueues()
58
+ result = receive_message(GetQueues_result)
59
+ return result.success unless result.success.nil?
60
+ raise result.err unless result.err.nil?
61
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getQueues failed: unknown result')
62
+ end
63
+
64
+ def getJob(ctx, jobID)
65
+ send_getJob(ctx, jobID)
66
+ return recv_getJob()
67
+ end
68
+
69
+ def send_getJob(ctx, jobID)
70
+ send_message('getJob', GetJob_args, :ctx => ctx, :jobID => jobID)
71
+ end
72
+
73
+ def recv_getJob()
74
+ result = receive_message(GetJob_result)
75
+ return result.success unless result.success.nil?
76
+ raise result.err unless result.err.nil?
77
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getJob failed: unknown result')
78
+ end
79
+
80
+ def getRunningJobs(ctx)
81
+ send_getRunningJobs(ctx)
82
+ return recv_getRunningJobs()
83
+ end
84
+
85
+ def send_getRunningJobs(ctx)
86
+ send_message('getRunningJobs', GetRunningJobs_args, :ctx => ctx)
87
+ end
88
+
89
+ def recv_getRunningJobs()
90
+ result = receive_message(GetRunningJobs_result)
91
+ return result.success unless result.success.nil?
92
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRunningJobs failed: unknown result')
93
+ end
94
+
95
+ def getCompletedJobs(ctx)
96
+ send_getCompletedJobs(ctx)
97
+ return recv_getCompletedJobs()
98
+ end
99
+
100
+ def send_getCompletedJobs(ctx)
101
+ send_message('getCompletedJobs', GetCompletedJobs_args, :ctx => ctx)
102
+ end
103
+
104
+ def recv_getCompletedJobs()
105
+ result = receive_message(GetCompletedJobs_result)
106
+ return result.success unless result.success.nil?
107
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCompletedJobs failed: unknown result')
108
+ end
109
+
110
+ def getFailedJobs(ctx)
111
+ send_getFailedJobs(ctx)
112
+ return recv_getFailedJobs()
113
+ end
114
+
115
+ def send_getFailedJobs(ctx)
116
+ send_message('getFailedJobs', GetFailedJobs_args, :ctx => ctx)
117
+ end
118
+
119
+ def recv_getFailedJobs()
120
+ result = receive_message(GetFailedJobs_result)
121
+ return result.success unless result.success.nil?
122
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFailedJobs failed: unknown result')
123
+ end
124
+
125
+ def getKilledJobs(ctx)
126
+ send_getKilledJobs(ctx)
127
+ return recv_getKilledJobs()
128
+ end
129
+
130
+ def send_getKilledJobs(ctx)
131
+ send_message('getKilledJobs', GetKilledJobs_args, :ctx => ctx)
132
+ end
133
+
134
+ def recv_getKilledJobs()
135
+ result = receive_message(GetKilledJobs_result)
136
+ return result.success unless result.success.nil?
137
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getKilledJobs failed: unknown result')
138
+ end
139
+
140
+ def getAllJobs(ctx)
141
+ send_getAllJobs(ctx)
142
+ return recv_getAllJobs()
143
+ end
144
+
145
+ def send_getAllJobs(ctx)
146
+ send_message('getAllJobs', GetAllJobs_args, :ctx => ctx)
147
+ end
148
+
149
+ def recv_getAllJobs()
150
+ result = receive_message(GetAllJobs_result)
151
+ return result.success unless result.success.nil?
152
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAllJobs failed: unknown result')
153
+ end
154
+
155
+ def getUserJobCounts(ctx, user)
156
+ send_getUserJobCounts(ctx, user)
157
+ return recv_getUserJobCounts()
158
+ end
159
+
160
+ def send_getUserJobCounts(ctx, user)
161
+ send_message('getUserJobCounts', GetUserJobCounts_args, :ctx => ctx, :user => user)
162
+ end
163
+
164
+ def recv_getUserJobCounts()
165
+ result = receive_message(GetUserJobCounts_result)
166
+ return result.success unless result.success.nil?
167
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUserJobCounts failed: unknown result')
168
+ end
169
+
170
+ def getTaskList(ctx, jobID, types, states, text, count, offset)
171
+ send_getTaskList(ctx, jobID, types, states, text, count, offset)
172
+ return recv_getTaskList()
173
+ end
174
+
175
+ def send_getTaskList(ctx, jobID, types, states, text, count, offset)
176
+ send_message('getTaskList', GetTaskList_args, :ctx => ctx, :jobID => jobID, :types => types, :states => states, :text => text, :count => count, :offset => offset)
177
+ end
178
+
179
+ def recv_getTaskList()
180
+ result = receive_message(GetTaskList_result)
181
+ return result.success unless result.success.nil?
182
+ raise result.err unless result.err.nil?
183
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTaskList failed: unknown result')
184
+ end
185
+
186
+ def getTask(ctx, taskID)
187
+ send_getTask(ctx, taskID)
188
+ return recv_getTask()
189
+ end
190
+
191
+ def send_getTask(ctx, taskID)
192
+ send_message('getTask', GetTask_args, :ctx => ctx, :taskID => taskID)
193
+ end
194
+
195
+ def recv_getTask()
196
+ result = receive_message(GetTask_result)
197
+ return result.success unless result.success.nil?
198
+ raise result.jnf unless result.jnf.nil?
199
+ raise result.tnf unless result.tnf.nil?
200
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTask failed: unknown result')
201
+ end
202
+
203
+ def getJobCounters(ctx, jobID)
204
+ send_getJobCounters(ctx, jobID)
205
+ return recv_getJobCounters()
206
+ end
207
+
208
+ def send_getJobCounters(ctx, jobID)
209
+ send_message('getJobCounters', GetJobCounters_args, :ctx => ctx, :jobID => jobID)
210
+ end
211
+
212
+ def recv_getJobCounters()
213
+ result = receive_message(GetJobCounters_result)
214
+ return result.success unless result.success.nil?
215
+ raise result.err unless result.err.nil?
216
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getJobCounters failed: unknown result')
217
+ end
218
+
219
+ def getJobCounterRollups(ctx, jobID)
220
+ send_getJobCounterRollups(ctx, jobID)
221
+ return recv_getJobCounterRollups()
222
+ end
223
+
224
+ def send_getJobCounterRollups(ctx, jobID)
225
+ send_message('getJobCounterRollups', GetJobCounterRollups_args, :ctx => ctx, :jobID => jobID)
226
+ end
227
+
228
+ def recv_getJobCounterRollups()
229
+ result = receive_message(GetJobCounterRollups_result)
230
+ return result.success unless result.success.nil?
231
+ raise result.err unless result.err.nil?
232
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getJobCounterRollups failed: unknown result')
233
+ end
234
+
235
+ def getActiveTrackers(ctx)
236
+ send_getActiveTrackers(ctx)
237
+ return recv_getActiveTrackers()
238
+ end
239
+
240
+ def send_getActiveTrackers(ctx)
241
+ send_message('getActiveTrackers', GetActiveTrackers_args, :ctx => ctx)
242
+ end
243
+
244
+ def recv_getActiveTrackers()
245
+ result = receive_message(GetActiveTrackers_result)
246
+ return result.success unless result.success.nil?
247
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getActiveTrackers failed: unknown result')
248
+ end
249
+
250
+ def getBlacklistedTrackers(ctx)
251
+ send_getBlacklistedTrackers(ctx)
252
+ return recv_getBlacklistedTrackers()
253
+ end
254
+
255
+ def send_getBlacklistedTrackers(ctx)
256
+ send_message('getBlacklistedTrackers', GetBlacklistedTrackers_args, :ctx => ctx)
257
+ end
258
+
259
+ def recv_getBlacklistedTrackers()
260
+ result = receive_message(GetBlacklistedTrackers_result)
261
+ return result.success unless result.success.nil?
262
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlacklistedTrackers failed: unknown result')
263
+ end
264
+
265
+ def getAllTrackers(ctx)
266
+ send_getAllTrackers(ctx)
267
+ return recv_getAllTrackers()
268
+ end
269
+
270
+ def send_getAllTrackers(ctx)
271
+ send_message('getAllTrackers', GetAllTrackers_args, :ctx => ctx)
272
+ end
273
+
274
+ def recv_getAllTrackers()
275
+ result = receive_message(GetAllTrackers_result)
276
+ return result.success unless result.success.nil?
277
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAllTrackers failed: unknown result')
278
+ end
279
+
280
+ def getTracker(ctx, name)
281
+ send_getTracker(ctx, name)
282
+ return recv_getTracker()
283
+ end
284
+
285
+ def send_getTracker(ctx, name)
286
+ send_message('getTracker', GetTracker_args, :ctx => ctx, :name => name)
287
+ end
288
+
289
+ def recv_getTracker()
290
+ result = receive_message(GetTracker_result)
291
+ return result.success unless result.success.nil?
292
+ raise result.tne unless result.tne.nil?
293
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTracker failed: unknown result')
294
+ end
295
+
296
+ def getCurrentTime(ctx)
297
+ send_getCurrentTime(ctx)
298
+ return recv_getCurrentTime()
299
+ end
300
+
301
+ def send_getCurrentTime(ctx)
302
+ send_message('getCurrentTime', GetCurrentTime_args, :ctx => ctx)
303
+ end
304
+
305
+ def recv_getCurrentTime()
306
+ result = receive_message(GetCurrentTime_result)
307
+ return result.success unless result.success.nil?
308
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCurrentTime failed: unknown result')
309
+ end
310
+
311
+ def getJobConfXML(ctx, jobID)
312
+ send_getJobConfXML(ctx, jobID)
313
+ return recv_getJobConfXML()
314
+ end
315
+
316
+ def send_getJobConfXML(ctx, jobID)
317
+ send_message('getJobConfXML', GetJobConfXML_args, :ctx => ctx, :jobID => jobID)
318
+ end
319
+
320
+ def recv_getJobConfXML()
321
+ result = receive_message(GetJobConfXML_result)
322
+ return result.success unless result.success.nil?
323
+ raise result.err unless result.err.nil?
324
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getJobConfXML failed: unknown result')
325
+ end
326
+
327
+ def killJob(ctx, jobID)
328
+ send_killJob(ctx, jobID)
329
+ recv_killJob()
330
+ end
331
+
332
+ def send_killJob(ctx, jobID)
333
+ send_message('killJob', KillJob_args, :ctx => ctx, :jobID => jobID)
334
+ end
335
+
336
+ def recv_killJob()
337
+ result = receive_message(KillJob_result)
338
+ raise result.err unless result.err.nil?
339
+ raise result.jne unless result.jne.nil?
340
+ return
341
+ end
342
+
343
+ def killTaskAttempt(ctx, attemptID)
344
+ send_killTaskAttempt(ctx, attemptID)
345
+ recv_killTaskAttempt()
346
+ end
347
+
348
+ def send_killTaskAttempt(ctx, attemptID)
349
+ send_message('killTaskAttempt', KillTaskAttempt_args, :ctx => ctx, :attemptID => attemptID)
350
+ end
351
+
352
+ def recv_killTaskAttempt()
353
+ result = receive_message(KillTaskAttempt_result)
354
+ raise result.err unless result.err.nil?
355
+ raise result.tne unless result.tne.nil?
356
+ raise result.jne unless result.jne.nil?
357
+ return
358
+ end
359
+
360
+ def setJobPriority(ctx, jobID, priority)
361
+ send_setJobPriority(ctx, jobID, priority)
362
+ recv_setJobPriority()
363
+ end
364
+
365
+ def send_setJobPriority(ctx, jobID, priority)
366
+ send_message('setJobPriority', SetJobPriority_args, :ctx => ctx, :jobID => jobID, :priority => priority)
367
+ end
368
+
369
+ def recv_setJobPriority()
370
+ result = receive_message(SetJobPriority_result)
371
+ raise result.err unless result.err.nil?
372
+ raise result.jne unless result.jne.nil?
373
+ return
374
+ end
375
+
376
+ def getDelegationToken(ctx, renewer)
377
+ send_getDelegationToken(ctx, renewer)
378
+ return recv_getDelegationToken()
379
+ end
380
+
381
+ def send_getDelegationToken(ctx, renewer)
382
+ send_message('getDelegationToken', GetDelegationToken_args, :ctx => ctx, :renewer => renewer)
383
+ end
384
+
385
+ def recv_getDelegationToken()
386
+ result = receive_message(GetDelegationToken_result)
387
+ return result.success unless result.success.nil?
388
+ raise result.err unless result.err.nil?
389
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDelegationToken failed: unknown result')
390
+ end
391
+
392
+ end
393
+
394
+ class Processor < Hadoop::API::HadoopServiceBase::Processor
395
+ include ::Thrift::Processor
396
+
397
+ def process_getJobTrackerName(seqid, iprot, oprot)
398
+ args = read_args(iprot, GetJobTrackerName_args)
399
+ result = GetJobTrackerName_result.new()
400
+ result.success = @handler.getJobTrackerName(args.ctx)
401
+ write_result(result, oprot, 'getJobTrackerName', seqid)
402
+ end
403
+
404
+ def process_getClusterStatus(seqid, iprot, oprot)
405
+ args = read_args(iprot, GetClusterStatus_args)
406
+ result = GetClusterStatus_result.new()
407
+ result.success = @handler.getClusterStatus(args.ctx)
408
+ write_result(result, oprot, 'getClusterStatus', seqid)
409
+ end
410
+
411
+ def process_getQueues(seqid, iprot, oprot)
412
+ args = read_args(iprot, GetQueues_args)
413
+ result = GetQueues_result.new()
414
+ begin
415
+ result.success = @handler.getQueues(args.ctx)
416
+ rescue Hadoop::API::IOException => err
417
+ result.err = err
418
+ end
419
+ write_result(result, oprot, 'getQueues', seqid)
420
+ end
421
+
422
+ def process_getJob(seqid, iprot, oprot)
423
+ args = read_args(iprot, GetJob_args)
424
+ result = GetJob_result.new()
425
+ begin
426
+ result.success = @handler.getJob(args.ctx, args.jobID)
427
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => err
428
+ result.err = err
429
+ end
430
+ write_result(result, oprot, 'getJob', seqid)
431
+ end
432
+
433
+ def process_getRunningJobs(seqid, iprot, oprot)
434
+ args = read_args(iprot, GetRunningJobs_args)
435
+ result = GetRunningJobs_result.new()
436
+ result.success = @handler.getRunningJobs(args.ctx)
437
+ write_result(result, oprot, 'getRunningJobs', seqid)
438
+ end
439
+
440
+ def process_getCompletedJobs(seqid, iprot, oprot)
441
+ args = read_args(iprot, GetCompletedJobs_args)
442
+ result = GetCompletedJobs_result.new()
443
+ result.success = @handler.getCompletedJobs(args.ctx)
444
+ write_result(result, oprot, 'getCompletedJobs', seqid)
445
+ end
446
+
447
+ def process_getFailedJobs(seqid, iprot, oprot)
448
+ args = read_args(iprot, GetFailedJobs_args)
449
+ result = GetFailedJobs_result.new()
450
+ result.success = @handler.getFailedJobs(args.ctx)
451
+ write_result(result, oprot, 'getFailedJobs', seqid)
452
+ end
453
+
454
+ def process_getKilledJobs(seqid, iprot, oprot)
455
+ args = read_args(iprot, GetKilledJobs_args)
456
+ result = GetKilledJobs_result.new()
457
+ result.success = @handler.getKilledJobs(args.ctx)
458
+ write_result(result, oprot, 'getKilledJobs', seqid)
459
+ end
460
+
461
+ def process_getAllJobs(seqid, iprot, oprot)
462
+ args = read_args(iprot, GetAllJobs_args)
463
+ result = GetAllJobs_result.new()
464
+ result.success = @handler.getAllJobs(args.ctx)
465
+ write_result(result, oprot, 'getAllJobs', seqid)
466
+ end
467
+
468
+ def process_getUserJobCounts(seqid, iprot, oprot)
469
+ args = read_args(iprot, GetUserJobCounts_args)
470
+ result = GetUserJobCounts_result.new()
471
+ result.success = @handler.getUserJobCounts(args.ctx, args.user)
472
+ write_result(result, oprot, 'getUserJobCounts', seqid)
473
+ end
474
+
475
+ def process_getTaskList(seqid, iprot, oprot)
476
+ args = read_args(iprot, GetTaskList_args)
477
+ result = GetTaskList_result.new()
478
+ begin
479
+ result.success = @handler.getTaskList(args.ctx, args.jobID, args.types, args.states, args.text, args.count, args.offset)
480
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => err
481
+ result.err = err
482
+ end
483
+ write_result(result, oprot, 'getTaskList', seqid)
484
+ end
485
+
486
+ def process_getTask(seqid, iprot, oprot)
487
+ args = read_args(iprot, GetTask_args)
488
+ result = GetTask_result.new()
489
+ begin
490
+ result.success = @handler.getTask(args.ctx, args.taskID)
491
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => jnf
492
+ result.jnf = jnf
493
+ rescue Hadoop::API::Jobtracker::TaskNotFoundException => tnf
494
+ result.tnf = tnf
495
+ end
496
+ write_result(result, oprot, 'getTask', seqid)
497
+ end
498
+
499
+ def process_getJobCounters(seqid, iprot, oprot)
500
+ args = read_args(iprot, GetJobCounters_args)
501
+ result = GetJobCounters_result.new()
502
+ begin
503
+ result.success = @handler.getJobCounters(args.ctx, args.jobID)
504
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => err
505
+ result.err = err
506
+ end
507
+ write_result(result, oprot, 'getJobCounters', seqid)
508
+ end
509
+
510
+ def process_getJobCounterRollups(seqid, iprot, oprot)
511
+ args = read_args(iprot, GetJobCounterRollups_args)
512
+ result = GetJobCounterRollups_result.new()
513
+ begin
514
+ result.success = @handler.getJobCounterRollups(args.ctx, args.jobID)
515
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => err
516
+ result.err = err
517
+ end
518
+ write_result(result, oprot, 'getJobCounterRollups', seqid)
519
+ end
520
+
521
+ def process_getActiveTrackers(seqid, iprot, oprot)
522
+ args = read_args(iprot, GetActiveTrackers_args)
523
+ result = GetActiveTrackers_result.new()
524
+ result.success = @handler.getActiveTrackers(args.ctx)
525
+ write_result(result, oprot, 'getActiveTrackers', seqid)
526
+ end
527
+
528
+ def process_getBlacklistedTrackers(seqid, iprot, oprot)
529
+ args = read_args(iprot, GetBlacklistedTrackers_args)
530
+ result = GetBlacklistedTrackers_result.new()
531
+ result.success = @handler.getBlacklistedTrackers(args.ctx)
532
+ write_result(result, oprot, 'getBlacklistedTrackers', seqid)
533
+ end
534
+
535
+ def process_getAllTrackers(seqid, iprot, oprot)
536
+ args = read_args(iprot, GetAllTrackers_args)
537
+ result = GetAllTrackers_result.new()
538
+ result.success = @handler.getAllTrackers(args.ctx)
539
+ write_result(result, oprot, 'getAllTrackers', seqid)
540
+ end
541
+
542
+ def process_getTracker(seqid, iprot, oprot)
543
+ args = read_args(iprot, GetTracker_args)
544
+ result = GetTracker_result.new()
545
+ begin
546
+ result.success = @handler.getTracker(args.ctx, args.name)
547
+ rescue Hadoop::API::Jobtracker::TaskTrackerNotFoundException => tne
548
+ result.tne = tne
549
+ end
550
+ write_result(result, oprot, 'getTracker', seqid)
551
+ end
552
+
553
+ def process_getCurrentTime(seqid, iprot, oprot)
554
+ args = read_args(iprot, GetCurrentTime_args)
555
+ result = GetCurrentTime_result.new()
556
+ result.success = @handler.getCurrentTime(args.ctx)
557
+ write_result(result, oprot, 'getCurrentTime', seqid)
558
+ end
559
+
560
+ def process_getJobConfXML(seqid, iprot, oprot)
561
+ args = read_args(iprot, GetJobConfXML_args)
562
+ result = GetJobConfXML_result.new()
563
+ begin
564
+ result.success = @handler.getJobConfXML(args.ctx, args.jobID)
565
+ rescue Hadoop::API::IOException => err
566
+ result.err = err
567
+ end
568
+ write_result(result, oprot, 'getJobConfXML', seqid)
569
+ end
570
+
571
+ def process_killJob(seqid, iprot, oprot)
572
+ args = read_args(iprot, KillJob_args)
573
+ result = KillJob_result.new()
574
+ begin
575
+ @handler.killJob(args.ctx, args.jobID)
576
+ rescue Hadoop::API::IOException => err
577
+ result.err = err
578
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => jne
579
+ result.jne = jne
580
+ end
581
+ write_result(result, oprot, 'killJob', seqid)
582
+ end
583
+
584
+ def process_killTaskAttempt(seqid, iprot, oprot)
585
+ args = read_args(iprot, KillTaskAttempt_args)
586
+ result = KillTaskAttempt_result.new()
587
+ begin
588
+ @handler.killTaskAttempt(args.ctx, args.attemptID)
589
+ rescue Hadoop::API::IOException => err
590
+ result.err = err
591
+ rescue Hadoop::API::Jobtracker::TaskAttemptNotFoundException => tne
592
+ result.tne = tne
593
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => jne
594
+ result.jne = jne
595
+ end
596
+ write_result(result, oprot, 'killTaskAttempt', seqid)
597
+ end
598
+
599
+ def process_setJobPriority(seqid, iprot, oprot)
600
+ args = read_args(iprot, SetJobPriority_args)
601
+ result = SetJobPriority_result.new()
602
+ begin
603
+ @handler.setJobPriority(args.ctx, args.jobID, args.priority)
604
+ rescue Hadoop::API::IOException => err
605
+ result.err = err
606
+ rescue Hadoop::API::Jobtracker::JobNotFoundException => jne
607
+ result.jne = jne
608
+ end
609
+ write_result(result, oprot, 'setJobPriority', seqid)
610
+ end
611
+
612
+ def process_getDelegationToken(seqid, iprot, oprot)
613
+ args = read_args(iprot, GetDelegationToken_args)
614
+ result = GetDelegationToken_result.new()
615
+ begin
616
+ result.success = @handler.getDelegationToken(args.ctx, args.renewer)
617
+ rescue Hadoop::API::IOException => err
618
+ result.err = err
619
+ end
620
+ write_result(result, oprot, 'getDelegationToken', seqid)
621
+ end
622
+
623
+ end
624
+
625
+ # HELPER FUNCTIONS AND STRUCTURES
626
+
627
+ class GetJobTrackerName_args
628
+ include ::Thrift::Struct, ::Thrift::Struct_Union
629
+ CTX = 10
630
+
631
+ FIELDS = {
632
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
633
+ }
634
+
635
+ def struct_fields; FIELDS; end
636
+
637
+ def validate
638
+ end
639
+
640
+ ::Thrift::Struct.generate_accessors self
641
+ end
642
+
643
+ class GetJobTrackerName_result
644
+ include ::Thrift::Struct, ::Thrift::Struct_Union
645
+ SUCCESS = 0
646
+
647
+ FIELDS = {
648
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
649
+ }
650
+
651
+ def struct_fields; FIELDS; end
652
+
653
+ def validate
654
+ end
655
+
656
+ ::Thrift::Struct.generate_accessors self
657
+ end
658
+
659
+ class GetClusterStatus_args
660
+ include ::Thrift::Struct, ::Thrift::Struct_Union
661
+ CTX = 10
662
+
663
+ FIELDS = {
664
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
665
+ }
666
+
667
+ def struct_fields; FIELDS; end
668
+
669
+ def validate
670
+ end
671
+
672
+ ::Thrift::Struct.generate_accessors self
673
+ end
674
+
675
+ class GetClusterStatus_result
676
+ include ::Thrift::Struct, ::Thrift::Struct_Union
677
+ SUCCESS = 0
678
+
679
+ FIELDS = {
680
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftClusterStatus}
681
+ }
682
+
683
+ def struct_fields; FIELDS; end
684
+
685
+ def validate
686
+ end
687
+
688
+ ::Thrift::Struct.generate_accessors self
689
+ end
690
+
691
+ class GetQueues_args
692
+ include ::Thrift::Struct, ::Thrift::Struct_Union
693
+ CTX = 10
694
+
695
+ FIELDS = {
696
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
697
+ }
698
+
699
+ def struct_fields; FIELDS; end
700
+
701
+ def validate
702
+ end
703
+
704
+ ::Thrift::Struct.generate_accessors self
705
+ end
706
+
707
+ class GetQueues_result
708
+ include ::Thrift::Struct, ::Thrift::Struct_Union
709
+ SUCCESS = 0
710
+ ERR = 1
711
+
712
+ FIELDS = {
713
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobQueueList},
714
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::IOException}
715
+ }
716
+
717
+ def struct_fields; FIELDS; end
718
+
719
+ def validate
720
+ end
721
+
722
+ ::Thrift::Struct.generate_accessors self
723
+ end
724
+
725
+ class GetJob_args
726
+ include ::Thrift::Struct, ::Thrift::Struct_Union
727
+ CTX = 10
728
+ JOBID = 1
729
+
730
+ FIELDS = {
731
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
732
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID}
733
+ }
734
+
735
+ def struct_fields; FIELDS; end
736
+
737
+ def validate
738
+ end
739
+
740
+ ::Thrift::Struct.generate_accessors self
741
+ end
742
+
743
+ class GetJob_result
744
+ include ::Thrift::Struct, ::Thrift::Struct_Union
745
+ SUCCESS = 0
746
+ ERR = 1
747
+
748
+ FIELDS = {
749
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobInProgress},
750
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::Jobtracker::JobNotFoundException}
751
+ }
752
+
753
+ def struct_fields; FIELDS; end
754
+
755
+ def validate
756
+ end
757
+
758
+ ::Thrift::Struct.generate_accessors self
759
+ end
760
+
761
+ class GetRunningJobs_args
762
+ include ::Thrift::Struct, ::Thrift::Struct_Union
763
+ CTX = 10
764
+
765
+ FIELDS = {
766
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
767
+ }
768
+
769
+ def struct_fields; FIELDS; end
770
+
771
+ def validate
772
+ end
773
+
774
+ ::Thrift::Struct.generate_accessors self
775
+ end
776
+
777
+ class GetRunningJobs_result
778
+ include ::Thrift::Struct, ::Thrift::Struct_Union
779
+ SUCCESS = 0
780
+
781
+ FIELDS = {
782
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobList}
783
+ }
784
+
785
+ def struct_fields; FIELDS; end
786
+
787
+ def validate
788
+ end
789
+
790
+ ::Thrift::Struct.generate_accessors self
791
+ end
792
+
793
+ class GetCompletedJobs_args
794
+ include ::Thrift::Struct, ::Thrift::Struct_Union
795
+ CTX = 10
796
+
797
+ FIELDS = {
798
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
799
+ }
800
+
801
+ def struct_fields; FIELDS; end
802
+
803
+ def validate
804
+ end
805
+
806
+ ::Thrift::Struct.generate_accessors self
807
+ end
808
+
809
+ class GetCompletedJobs_result
810
+ include ::Thrift::Struct, ::Thrift::Struct_Union
811
+ SUCCESS = 0
812
+
813
+ FIELDS = {
814
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobList}
815
+ }
816
+
817
+ def struct_fields; FIELDS; end
818
+
819
+ def validate
820
+ end
821
+
822
+ ::Thrift::Struct.generate_accessors self
823
+ end
824
+
825
+ class GetFailedJobs_args
826
+ include ::Thrift::Struct, ::Thrift::Struct_Union
827
+ CTX = 10
828
+
829
+ FIELDS = {
830
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
831
+ }
832
+
833
+ def struct_fields; FIELDS; end
834
+
835
+ def validate
836
+ end
837
+
838
+ ::Thrift::Struct.generate_accessors self
839
+ end
840
+
841
+ class GetFailedJobs_result
842
+ include ::Thrift::Struct, ::Thrift::Struct_Union
843
+ SUCCESS = 0
844
+
845
+ FIELDS = {
846
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobList}
847
+ }
848
+
849
+ def struct_fields; FIELDS; end
850
+
851
+ def validate
852
+ end
853
+
854
+ ::Thrift::Struct.generate_accessors self
855
+ end
856
+
857
+ class GetKilledJobs_args
858
+ include ::Thrift::Struct, ::Thrift::Struct_Union
859
+ CTX = 10
860
+
861
+ FIELDS = {
862
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
863
+ }
864
+
865
+ def struct_fields; FIELDS; end
866
+
867
+ def validate
868
+ end
869
+
870
+ ::Thrift::Struct.generate_accessors self
871
+ end
872
+
873
+ class GetKilledJobs_result
874
+ include ::Thrift::Struct, ::Thrift::Struct_Union
875
+ SUCCESS = 0
876
+
877
+ FIELDS = {
878
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobList}
879
+ }
880
+
881
+ def struct_fields; FIELDS; end
882
+
883
+ def validate
884
+ end
885
+
886
+ ::Thrift::Struct.generate_accessors self
887
+ end
888
+
889
+ class GetAllJobs_args
890
+ include ::Thrift::Struct, ::Thrift::Struct_Union
891
+ CTX = 10
892
+
893
+ FIELDS = {
894
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
895
+ }
896
+
897
+ def struct_fields; FIELDS; end
898
+
899
+ def validate
900
+ end
901
+
902
+ ::Thrift::Struct.generate_accessors self
903
+ end
904
+
905
+ class GetAllJobs_result
906
+ include ::Thrift::Struct, ::Thrift::Struct_Union
907
+ SUCCESS = 0
908
+
909
+ FIELDS = {
910
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobList}
911
+ }
912
+
913
+ def struct_fields; FIELDS; end
914
+
915
+ def validate
916
+ end
917
+
918
+ ::Thrift::Struct.generate_accessors self
919
+ end
920
+
921
+ class GetUserJobCounts_args
922
+ include ::Thrift::Struct, ::Thrift::Struct_Union
923
+ CTX = 1
924
+ USER = 2
925
+
926
+ FIELDS = {
927
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
928
+ USER => {:type => ::Thrift::Types::STRING, :name => 'user'}
929
+ }
930
+
931
+ def struct_fields; FIELDS; end
932
+
933
+ def validate
934
+ end
935
+
936
+ ::Thrift::Struct.generate_accessors self
937
+ end
938
+
939
+ class GetUserJobCounts_result
940
+ include ::Thrift::Struct, ::Thrift::Struct_Union
941
+ SUCCESS = 0
942
+
943
+ FIELDS = {
944
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftUserJobCounts}
945
+ }
946
+
947
+ def struct_fields; FIELDS; end
948
+
949
+ def validate
950
+ end
951
+
952
+ ::Thrift::Struct.generate_accessors self
953
+ end
954
+
955
+ class GetTaskList_args
956
+ include ::Thrift::Struct, ::Thrift::Struct_Union
957
+ CTX = 1
958
+ JOBID = 2
959
+ TYPES = 3
960
+ STATES = 4
961
+ TEXT = 5
962
+ COUNT = 6
963
+ OFFSET = 7
964
+
965
+ FIELDS = {
966
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
967
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID},
968
+ TYPES => {:type => ::Thrift::Types::SET, :name => 'types', :element => {:type => ::Thrift::Types::I32, :enum_class => Hadoop::API::Jobtracker::ThriftTaskType}},
969
+ STATES => {:type => ::Thrift::Types::SET, :name => 'states', :element => {:type => ::Thrift::Types::I32, :enum_class => Hadoop::API::Jobtracker::ThriftTaskQueryState}},
970
+ TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'},
971
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count'},
972
+ OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'}
973
+ }
974
+
975
+ def struct_fields; FIELDS; end
976
+
977
+ def validate
978
+ end
979
+
980
+ ::Thrift::Struct.generate_accessors self
981
+ end
982
+
983
+ class GetTaskList_result
984
+ include ::Thrift::Struct, ::Thrift::Struct_Union
985
+ SUCCESS = 0
986
+ ERR = 1
987
+
988
+ FIELDS = {
989
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftTaskInProgressList},
990
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::Jobtracker::JobNotFoundException}
991
+ }
992
+
993
+ def struct_fields; FIELDS; end
994
+
995
+ def validate
996
+ end
997
+
998
+ ::Thrift::Struct.generate_accessors self
999
+ end
1000
+
1001
+ class GetTask_args
1002
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1003
+ CTX = 1
1004
+ TASKID = 2
1005
+
1006
+ FIELDS = {
1007
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1008
+ TASKID => {:type => ::Thrift::Types::STRUCT, :name => 'taskID', :class => Hadoop::API::Jobtracker::ThriftTaskID}
1009
+ }
1010
+
1011
+ def struct_fields; FIELDS; end
1012
+
1013
+ def validate
1014
+ end
1015
+
1016
+ ::Thrift::Struct.generate_accessors self
1017
+ end
1018
+
1019
+ class GetTask_result
1020
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1021
+ SUCCESS = 0
1022
+ JNF = 1
1023
+ TNF = 2
1024
+
1025
+ FIELDS = {
1026
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftTaskInProgress},
1027
+ JNF => {:type => ::Thrift::Types::STRUCT, :name => 'jnf', :class => Hadoop::API::Jobtracker::JobNotFoundException},
1028
+ TNF => {:type => ::Thrift::Types::STRUCT, :name => 'tnf', :class => Hadoop::API::Jobtracker::TaskNotFoundException}
1029
+ }
1030
+
1031
+ def struct_fields; FIELDS; end
1032
+
1033
+ def validate
1034
+ end
1035
+
1036
+ ::Thrift::Struct.generate_accessors self
1037
+ end
1038
+
1039
+ class GetJobCounters_args
1040
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1041
+ CTX = 10
1042
+ JOBID = 1
1043
+
1044
+ FIELDS = {
1045
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1046
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID}
1047
+ }
1048
+
1049
+ def struct_fields; FIELDS; end
1050
+
1051
+ def validate
1052
+ end
1053
+
1054
+ ::Thrift::Struct.generate_accessors self
1055
+ end
1056
+
1057
+ class GetJobCounters_result
1058
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1059
+ SUCCESS = 0
1060
+ ERR = 1
1061
+
1062
+ FIELDS = {
1063
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftGroupList},
1064
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::Jobtracker::JobNotFoundException}
1065
+ }
1066
+
1067
+ def struct_fields; FIELDS; end
1068
+
1069
+ def validate
1070
+ end
1071
+
1072
+ ::Thrift::Struct.generate_accessors self
1073
+ end
1074
+
1075
+ class GetJobCounterRollups_args
1076
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1077
+ CTX = 10
1078
+ JOBID = 1
1079
+
1080
+ FIELDS = {
1081
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1082
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID}
1083
+ }
1084
+
1085
+ def struct_fields; FIELDS; end
1086
+
1087
+ def validate
1088
+ end
1089
+
1090
+ ::Thrift::Struct.generate_accessors self
1091
+ end
1092
+
1093
+ class GetJobCounterRollups_result
1094
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1095
+ SUCCESS = 0
1096
+ ERR = 1
1097
+
1098
+ FIELDS = {
1099
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftJobCounterRollups},
1100
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::Jobtracker::JobNotFoundException}
1101
+ }
1102
+
1103
+ def struct_fields; FIELDS; end
1104
+
1105
+ def validate
1106
+ end
1107
+
1108
+ ::Thrift::Struct.generate_accessors self
1109
+ end
1110
+
1111
+ class GetActiveTrackers_args
1112
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1113
+ CTX = 10
1114
+
1115
+ FIELDS = {
1116
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
1117
+ }
1118
+
1119
+ def struct_fields; FIELDS; end
1120
+
1121
+ def validate
1122
+ end
1123
+
1124
+ ::Thrift::Struct.generate_accessors self
1125
+ end
1126
+
1127
+ class GetActiveTrackers_result
1128
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1129
+ SUCCESS = 0
1130
+
1131
+ FIELDS = {
1132
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftTaskTrackerStatusList}
1133
+ }
1134
+
1135
+ def struct_fields; FIELDS; end
1136
+
1137
+ def validate
1138
+ end
1139
+
1140
+ ::Thrift::Struct.generate_accessors self
1141
+ end
1142
+
1143
+ class GetBlacklistedTrackers_args
1144
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1145
+ CTX = 10
1146
+
1147
+ FIELDS = {
1148
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
1149
+ }
1150
+
1151
+ def struct_fields; FIELDS; end
1152
+
1153
+ def validate
1154
+ end
1155
+
1156
+ ::Thrift::Struct.generate_accessors self
1157
+ end
1158
+
1159
+ class GetBlacklistedTrackers_result
1160
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1161
+ SUCCESS = 0
1162
+
1163
+ FIELDS = {
1164
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftTaskTrackerStatusList}
1165
+ }
1166
+
1167
+ def struct_fields; FIELDS; end
1168
+
1169
+ def validate
1170
+ end
1171
+
1172
+ ::Thrift::Struct.generate_accessors self
1173
+ end
1174
+
1175
+ class GetAllTrackers_args
1176
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1177
+ CTX = 10
1178
+
1179
+ FIELDS = {
1180
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
1181
+ }
1182
+
1183
+ def struct_fields; FIELDS; end
1184
+
1185
+ def validate
1186
+ end
1187
+
1188
+ ::Thrift::Struct.generate_accessors self
1189
+ end
1190
+
1191
+ class GetAllTrackers_result
1192
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1193
+ SUCCESS = 0
1194
+
1195
+ FIELDS = {
1196
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftTaskTrackerStatusList}
1197
+ }
1198
+
1199
+ def struct_fields; FIELDS; end
1200
+
1201
+ def validate
1202
+ end
1203
+
1204
+ ::Thrift::Struct.generate_accessors self
1205
+ end
1206
+
1207
+ class GetTracker_args
1208
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1209
+ CTX = 10
1210
+ NAME = 1
1211
+
1212
+ FIELDS = {
1213
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1214
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
1215
+ }
1216
+
1217
+ def struct_fields; FIELDS; end
1218
+
1219
+ def validate
1220
+ end
1221
+
1222
+ ::Thrift::Struct.generate_accessors self
1223
+ end
1224
+
1225
+ class GetTracker_result
1226
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1227
+ SUCCESS = 0
1228
+ TNE = 1
1229
+
1230
+ FIELDS = {
1231
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::Jobtracker::ThriftTaskTrackerStatus},
1232
+ TNE => {:type => ::Thrift::Types::STRUCT, :name => 'tne', :class => Hadoop::API::Jobtracker::TaskTrackerNotFoundException}
1233
+ }
1234
+
1235
+ def struct_fields; FIELDS; end
1236
+
1237
+ def validate
1238
+ end
1239
+
1240
+ ::Thrift::Struct.generate_accessors self
1241
+ end
1242
+
1243
+ class GetCurrentTime_args
1244
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1245
+ CTX = 10
1246
+
1247
+ FIELDS = {
1248
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext}
1249
+ }
1250
+
1251
+ def struct_fields; FIELDS; end
1252
+
1253
+ def validate
1254
+ end
1255
+
1256
+ ::Thrift::Struct.generate_accessors self
1257
+ end
1258
+
1259
+ class GetCurrentTime_result
1260
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1261
+ SUCCESS = 0
1262
+
1263
+ FIELDS = {
1264
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
1265
+ }
1266
+
1267
+ def struct_fields; FIELDS; end
1268
+
1269
+ def validate
1270
+ end
1271
+
1272
+ ::Thrift::Struct.generate_accessors self
1273
+ end
1274
+
1275
+ class GetJobConfXML_args
1276
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1277
+ CTX = 10
1278
+ JOBID = 1
1279
+
1280
+ FIELDS = {
1281
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1282
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID}
1283
+ }
1284
+
1285
+ def struct_fields; FIELDS; end
1286
+
1287
+ def validate
1288
+ end
1289
+
1290
+ ::Thrift::Struct.generate_accessors self
1291
+ end
1292
+
1293
+ class GetJobConfXML_result
1294
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1295
+ SUCCESS = 0
1296
+ ERR = 1
1297
+
1298
+ FIELDS = {
1299
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1300
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::IOException}
1301
+ }
1302
+
1303
+ def struct_fields; FIELDS; end
1304
+
1305
+ def validate
1306
+ end
1307
+
1308
+ ::Thrift::Struct.generate_accessors self
1309
+ end
1310
+
1311
+ class KillJob_args
1312
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1313
+ CTX = 10
1314
+ JOBID = 1
1315
+
1316
+ FIELDS = {
1317
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1318
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID}
1319
+ }
1320
+
1321
+ def struct_fields; FIELDS; end
1322
+
1323
+ def validate
1324
+ end
1325
+
1326
+ ::Thrift::Struct.generate_accessors self
1327
+ end
1328
+
1329
+ class KillJob_result
1330
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1331
+ ERR = 1
1332
+ JNE = 2
1333
+
1334
+ FIELDS = {
1335
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::IOException},
1336
+ JNE => {:type => ::Thrift::Types::STRUCT, :name => 'jne', :class => Hadoop::API::Jobtracker::JobNotFoundException}
1337
+ }
1338
+
1339
+ def struct_fields; FIELDS; end
1340
+
1341
+ def validate
1342
+ end
1343
+
1344
+ ::Thrift::Struct.generate_accessors self
1345
+ end
1346
+
1347
+ class KillTaskAttempt_args
1348
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1349
+ CTX = 10
1350
+ ATTEMPTID = 1
1351
+
1352
+ FIELDS = {
1353
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1354
+ ATTEMPTID => {:type => ::Thrift::Types::STRUCT, :name => 'attemptID', :class => Hadoop::API::Jobtracker::ThriftTaskAttemptID}
1355
+ }
1356
+
1357
+ def struct_fields; FIELDS; end
1358
+
1359
+ def validate
1360
+ end
1361
+
1362
+ ::Thrift::Struct.generate_accessors self
1363
+ end
1364
+
1365
+ class KillTaskAttempt_result
1366
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1367
+ ERR = 1
1368
+ TNE = 2
1369
+ JNE = 3
1370
+
1371
+ FIELDS = {
1372
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::IOException},
1373
+ TNE => {:type => ::Thrift::Types::STRUCT, :name => 'tne', :class => Hadoop::API::Jobtracker::TaskAttemptNotFoundException},
1374
+ JNE => {:type => ::Thrift::Types::STRUCT, :name => 'jne', :class => Hadoop::API::Jobtracker::JobNotFoundException}
1375
+ }
1376
+
1377
+ def struct_fields; FIELDS; end
1378
+
1379
+ def validate
1380
+ end
1381
+
1382
+ ::Thrift::Struct.generate_accessors self
1383
+ end
1384
+
1385
+ class SetJobPriority_args
1386
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1387
+ CTX = 10
1388
+ JOBID = 1
1389
+ PRIORITY = 2
1390
+
1391
+ FIELDS = {
1392
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1393
+ JOBID => {:type => ::Thrift::Types::STRUCT, :name => 'jobID', :class => Hadoop::API::Jobtracker::ThriftJobID},
1394
+ PRIORITY => {:type => ::Thrift::Types::I32, :name => 'priority', :enum_class => Hadoop::API::Jobtracker::ThriftJobPriority}
1395
+ }
1396
+
1397
+ def struct_fields; FIELDS; end
1398
+
1399
+ def validate
1400
+ unless @priority.nil? || Hadoop::API::Jobtracker::ThriftJobPriority::VALID_VALUES.include?(@priority)
1401
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field priority!')
1402
+ end
1403
+ end
1404
+
1405
+ ::Thrift::Struct.generate_accessors self
1406
+ end
1407
+
1408
+ class SetJobPriority_result
1409
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1410
+ ERR = 1
1411
+ JNE = 2
1412
+
1413
+ FIELDS = {
1414
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::IOException},
1415
+ JNE => {:type => ::Thrift::Types::STRUCT, :name => 'jne', :class => Hadoop::API::Jobtracker::JobNotFoundException}
1416
+ }
1417
+
1418
+ def struct_fields; FIELDS; end
1419
+
1420
+ def validate
1421
+ end
1422
+
1423
+ ::Thrift::Struct.generate_accessors self
1424
+ end
1425
+
1426
+ class GetDelegationToken_args
1427
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1428
+ CTX = 10
1429
+ RENEWER = 1
1430
+
1431
+ FIELDS = {
1432
+ CTX => {:type => ::Thrift::Types::STRUCT, :name => 'ctx', :class => Hadoop::API::RequestContext},
1433
+ RENEWER => {:type => ::Thrift::Types::STRING, :name => 'renewer'}
1434
+ }
1435
+
1436
+ def struct_fields; FIELDS; end
1437
+
1438
+ def validate
1439
+ end
1440
+
1441
+ ::Thrift::Struct.generate_accessors self
1442
+ end
1443
+
1444
+ class GetDelegationToken_result
1445
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1446
+ SUCCESS = 0
1447
+ ERR = 1
1448
+
1449
+ FIELDS = {
1450
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Hadoop::API::ThriftDelegationToken},
1451
+ ERR => {:type => ::Thrift::Types::STRUCT, :name => 'err', :class => Hadoop::API::IOException}
1452
+ }
1453
+
1454
+ def struct_fields; FIELDS; end
1455
+
1456
+ def validate
1457
+ end
1458
+
1459
+ ::Thrift::Struct.generate_accessors self
1460
+ end
1461
+
1462
+ end
1463
+
1464
+ end
1465
+ end
1466
+ end