public class SoakTestParallelClientManager extends AbstractParallelClientManager<SoakOptions>
Constructor and Description |
---|
SoakTestParallelClientManager(Runner<SoakOptions> runner,
SoakOptions options)
Creates a new Parallel Client Manager
|
Modifier and Type | Method and Description |
---|---|
int |
completeRun()
Method that will be called by parallel clients to indicate they have
completed a run and to obtain what run completion number it is
|
boolean |
hasFinished()
Returns whether the parallel clients have finished all necessary runs
|
boolean |
shouldRun()
Method that will be called by parallel clients to determine if they
should continue to run, calls to this are thread safe
|
boolean |
startRun()
Method that will be called by parallel clients to indicate they have
started a new run
|
call, createClient, getOptions, getRunner, halt, isReady, setReady, shouldHalt
public SoakTestParallelClientManager(Runner<SoakOptions> runner, SoakOptions options)
runner
- Benchmark runneroptions
- Optionspublic boolean shouldRun()
ParallelClientManager
public boolean startRun()
ParallelClientManager
A boolean is returned indicating whether the client should actually go
ahead with the run, this is to help avoid race conditions where multiple
threads check ParallelClientManager.shouldRun()
to see if they should proceed and then
attempt to start more runs than actually necessary.
public int completeRun()
ParallelClientManager
public boolean hasFinished()
ParallelClientManager
Copyright © 2015. All rights reserved.