Class: DeepTest::Distributed::ThroughputWorkerClient

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

Instance Method Summary collapse

Constructor Details

#initialize(options, test_server) ⇒ ThroughputWorkerClient

Returns a new instance of ThroughputWorkerClient.



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

def initialize(options, test_server)
  @options = options
  @test_server = test_server
end

Instance Method Details

#start_allObject



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

def start_all
  @worker_server = @test_server.spawn_worker_server(@options)
  @worker_server.start_all
end

#stop_allObject



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

def stop_all
  @worker_server.stop_all
end