Class: Concord::Thrift::BoltSchedulerService::Client
- Inherits:
-
Object
- Object
- Concord::Thrift::BoltSchedulerService::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/gen-rb/bolt_scheduler_service.rb
Instance Method Summary collapse
- #deployComputation(request) ⇒ Object
- #getComputationSlug(computationName) ⇒ Object
- #killTask(taskId) ⇒ Object
- #recv_deployComputation ⇒ Object
- #recv_getComputationSlug ⇒ Object
- #recv_killTask ⇒ Object
- #recv_registerComputation ⇒ Object
- #recv_scaleComputation ⇒ Object
- #registerComputation(computation) ⇒ Object
- #scaleComputation(computationName, instances) ⇒ Object
- #send_deployComputation(request) ⇒ Object
- #send_getComputationSlug(computationName) ⇒ Object
- #send_killTask(taskId) ⇒ Object
- #send_registerComputation(computation) ⇒ Object
- #send_scaleComputation(computationName, instances) ⇒ Object
Instance Method Details
#deployComputation(request) ⇒ Object
16 17 18 19 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 16 def deployComputation(request) send_deployComputation(request) recv_deployComputation() end |
#getComputationSlug(computationName) ⇒ Object
31 32 33 34 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 31 def getComputationSlug(computationName) send_getComputationSlug(computationName) return recv_getComputationSlug() end |
#killTask(taskId) ⇒ Object
78 79 80 81 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 78 def killTask(taskId) send_killTask(taskId) recv_killTask() end |
#recv_deployComputation ⇒ Object
25 26 27 28 29 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 25 def recv_deployComputation() result = (DeployComputation_result) raise result.e unless result.e.nil? return end |
#recv_getComputationSlug ⇒ Object
40 41 42 43 44 45 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 40 def recv_getComputationSlug() result = (GetComputationSlug_result) return result.success unless result.success.nil? raise result.e unless result.e.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getComputationSlug failed: unknown result') end |
#recv_killTask ⇒ Object
87 88 89 90 91 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 87 def recv_killTask() result = (KillTask_result) raise result.e unless result.e.nil? return end |
#recv_registerComputation ⇒ Object
56 57 58 59 60 61 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 56 def recv_registerComputation() result = (RegisterComputation_result) return result.success unless result.success.nil? raise result.e unless result.e.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'registerComputation failed: unknown result') end |
#recv_scaleComputation ⇒ Object
72 73 74 75 76 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 72 def recv_scaleComputation() result = (ScaleComputation_result) raise result.e unless result.e.nil? return end |
#registerComputation(computation) ⇒ Object
47 48 49 50 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 47 def registerComputation(computation) send_registerComputation(computation) return recv_registerComputation() end |
#scaleComputation(computationName, instances) ⇒ Object
63 64 65 66 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 63 def scaleComputation(computationName, instances) send_scaleComputation(computationName, instances) recv_scaleComputation() end |
#send_deployComputation(request) ⇒ Object
21 22 23 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 21 def send_deployComputation(request) ('deployComputation', DeployComputation_args, :request => request) end |
#send_getComputationSlug(computationName) ⇒ Object
36 37 38 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 36 def send_getComputationSlug(computationName) ('getComputationSlug', GetComputationSlug_args, :computationName => computationName) end |
#send_killTask(taskId) ⇒ Object
83 84 85 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 83 def send_killTask(taskId) ('killTask', KillTask_args, :taskId => taskId) end |
#send_registerComputation(computation) ⇒ Object
52 53 54 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 52 def send_registerComputation(computation) ('registerComputation', RegisterComputation_args, :computation => computation) end |
#send_scaleComputation(computationName, instances) ⇒ Object
68 69 70 |
# File 'lib/gen-rb/bolt_scheduler_service.rb', line 68 def send_scaleComputation(computationName, instances) ('scaleComputation', ScaleComputation_args, :computationName => computationName, :instances => instances) end |