|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.parallel.AbstractParallelClientManager<T>
net.sf.sparql.benchmarking.parallel.impl.BenchmarkParallelClientManager<T>
T
- Options typepublic class BenchmarkParallelClientManager<T extends BenchmarkOptions>
A Callable uses to manage the running of parallel clients for multi-threaded testing
Constructor Summary | |
---|---|
BenchmarkParallelClientManager(Runner<T> runner,
T options)
Creates a new Parallel Client Manager |
Method Summary | |
---|---|
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 |
Methods inherited from class net.sf.sparql.benchmarking.parallel.AbstractParallelClientManager |
---|
call, createClient, getOptions, getRunner, halt, isReady, setReady, shouldHalt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BenchmarkParallelClientManager(Runner<T> runner, T options)
runner
- Benchmark runneroptions
- OptionsMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |