Class: DeepTest::Distributed::MultiTestServerProxy
- Inherits:
-
Object
- Object
- DeepTest::Distributed::MultiTestServerProxy
- Defined in:
- lib/deep_test/distributed/multi_test_server_proxy.rb
Defined Under Namespace
Classes: WorkerServerProxy
Instance Method Summary collapse
-
#initialize(options, slaves) ⇒ MultiTestServerProxy
constructor
A new instance of MultiTestServerProxy.
- #spawn_worker_server(options) ⇒ Object
- #sync(options) ⇒ Object
Constructor Details
#initialize(options, slaves) ⇒ MultiTestServerProxy
Returns a new instance of MultiTestServerProxy.
4 5 6 7 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 4 def initialize(, slaves) DeepTest.logger.debug "MultiTestServerProxy#initialize #{slaves.length} slaves" @slave_controller = DispatchController.new(, slaves) end |
Instance Method Details
#spawn_worker_server(options) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/deep_test/distributed/multi_test_server_proxy.rb', line 9 def spawn_worker_server() DeepTest.logger.debug "dispatch spawn_worker_server for #{.origin_hostname}" WorkerServerProxy.new , @slave_controller.dispatch(:spawn_worker_server, ) end |