Class: DeepTest::Distributed::TestServerWorkers

Inherits:
LocalWorkers
  • Object
show all
Defined in:
lib/deep_test/distributed/test_server_workers.rb

Instance Method Summary collapse

Methods inherited from LocalWorkers

#load_files, #stop_all

Constructor Details

#initialize(options, test_server_config, connection_info) ⇒ TestServerWorkers

Returns a new instance of TestServerWorkers.



4
5
6
7
8
# File 'lib/deep_test/distributed/test_server_workers.rb', line 4

def initialize(options, test_server_config, connection_info)
  super(options)
  @test_server_config = test_server_config
  @connection_info = connection_info
end

Instance Method Details

#number_of_workersObject



10
11
12
# File 'lib/deep_test/distributed/test_server_workers.rb', line 10

def number_of_workers
  @test_server_config[:number_of_workers]
end

#serverObject



14
15
16
# File 'lib/deep_test/distributed/test_server_workers.rb', line 14

def server
  Server.remote_reference(@connection_info.address, @options.server_port)
end

#start_allObject



18
19
20
21
# File 'lib/deep_test/distributed/test_server_workers.rb', line 18

def start_all
  super
  @warlock.exit_when_none_running
end