|
||||||||||
| 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>
T - Options typepublic abstract class AbstractParallelClientManager<T extends Options>
Abstract implementation of a parallel client manager
| Constructor Summary | |
|---|---|
AbstractParallelClientManager(Runner<T> runner,
T options)
Creates a new parallel client manager |
|
| Method Summary | |
|---|---|
Object |
call()
Runs the parallel clients |
ParallelClient<T> |
createClient(int id)
Creates a new parallel client |
T |
getOptions()
Gets the options |
Runner<T> |
getRunner()
Gets the runner |
void |
halt()
Method called by parallel clients to tell the manager that they encountered a halting condition and thus all clients should halt |
boolean |
isReady()
Gets whether the manager is ready for clients to begin executing |
protected void |
setReady()
Sets that the client manager is ready |
protected boolean |
shouldHalt()
Gets whether the client should be halting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.sparql.benchmarking.parallel.ParallelClientManager |
|---|
completeRun, hasFinished, shouldRun, startRun |
| Constructor Detail |
|---|
public AbstractParallelClientManager(Runner<T> runner,
T options)
runner - Runneroptions - Options| Method Detail |
|---|
public final T getOptions()
ParallelClientManager
getOptions in interface ParallelClientManager<T extends Options>public final Runner<T> getRunner()
ParallelClientManager
getRunner in interface ParallelClientManager<T extends Options>public final boolean isReady()
ParallelClientManager
isReady in interface ParallelClientManager<T extends Options>protected final void setReady()
public final void halt()
ParallelClientManager
halt in interface ParallelClientManager<T extends Options>protected final boolean shouldHalt()
public Object call()
throws Exception
call in interface Callable<Object>Exceptionpublic ParallelClient<T> createClient(int id)
ParallelClientManager
createClient in interface ParallelClientManager<T extends Options>id - Client ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||