T
- Options typepublic abstract class AbstractParallelClientManager<T extends Options> extends Object implements ParallelClientManager<T>
Constructor and Description |
---|
AbstractParallelClientManager(Runner<T> runner,
T options)
Creates a new parallel client manager
|
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
completeRun, hasFinished, shouldRun, startRun
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 ParallelClient<T> createClient(int id)
ParallelClientManager
createClient
in interface ParallelClientManager<T extends Options>
id
- Client IDCopyright © 2015. All rights reserved.