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, waitcompleteRun, hasFinished, shouldRun, startRunpublic final T getOptions()
ParallelClientManagergetOptions in interface ParallelClientManager<T extends Options>public final Runner<T> getRunner()
ParallelClientManagergetRunner in interface ParallelClientManager<T extends Options>public final boolean isReady()
ParallelClientManagerisReady in interface ParallelClientManager<T extends Options>protected final void setReady()
public final void halt()
ParallelClientManagerhalt in interface ParallelClientManager<T extends Options>protected final boolean shouldHalt()
public ParallelClient<T> createClient(int id)
ParallelClientManagercreateClient in interface ParallelClientManager<T extends Options>id - Client IDCopyright © 2016. All rights reserved.