Class: DeepTest::Distributed::MultiTestServerProxy::WorkerServerProxy
- Inherits:
-
Object
- Object
- DeepTest::Distributed::MultiTestServerProxy::WorkerServerProxy
- Defined in:
- lib/deep_test/distributed/multi_test_server_proxy.rb
Instance Attribute Summary collapse
-
#slaves ⇒ Object
readonly
Returns the value of attribute slaves.
Instance Method Summary collapse
-
#initialize(options, slaves) ⇒ WorkerServerProxy
constructor
A new instance of WorkerServerProxy.
- #load_files(files) ⇒ Object
- #start_all ⇒ Object
- #stop_all ⇒ Object
Constructor Details
#initialize(options, slaves) ⇒ WorkerServerProxy
Returns a new instance of WorkerServerProxy.
57 58 59 60 61 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 57 def initialize(, slaves) @slaves = slaves DeepTest.logger.debug "WorkerServerProxy#initialize #{slaves.inspect}" @slave_controller = DispatchController.new(, slaves) end |
Instance Attribute Details
#slaves ⇒ Object (readonly)
Returns the value of attribute slaves.
55 56 57 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 55 def slaves @slaves end |
Instance Method Details
#load_files(files) ⇒ Object
63 64 65 66 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 63 def load_files(files) DeepTest.logger.debug "dispatch load_files" @slave_controller.dispatch(:load_files, files) end |
#start_all ⇒ Object
68 69 70 71 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 68 def start_all DeepTest.logger.debug "dispatch start_all" @slave_controller.dispatch(:start_all) end |
#stop_all ⇒ Object
73 74 75 76 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 73 def stop_all DeepTest.logger.debug "dispatch stop_all" @slave_controller.(:stop_all, :ignore_connection_error => true) end |