public abstract class SimultaneousStructural extends StructuralJob<java.lang.Object> implements Stoppable
childHelper, destroy, stop, structuralState| Constructor and Description |
|---|
SimultaneousStructural()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Execute this job.
|
java.util.concurrent.ExecutorService |
getExecutorService()
Getter for executor service.
|
boolean |
isJoin()
Should execution wait for all jobs to be executed before returning
to calling code.
|
protected void |
onStop()
Allow sub classes to do something on stop.
|
void |
setExecutorService(java.util.concurrent.ExecutorService executorService)
Set the
ExecutorService. |
void |
setJobs(int index,
java.lang.Object child)
Add a child job.
|
protected void |
startChildStateReflector()
Start the child state reflector.
|
addStructuralListener, fireDestroyedState, force, getInitialStateOp, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onHardReset, onReset, onSoftReset, postStop, removeStructuralListener, run, softReset, stateHandler, stop, stopChildStateReflector, waitForChildrenOnStopconfigure, getName, logger, logger, loggerName, save, setName, toStringaddIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, lastStateEvent, removeStateListener@Inject public void setExecutorService(java.util.concurrent.ExecutorService executorService)
ExecutorService.Property: executorService
Description: The ExecutorService to use. This will be automatically set by Oddjob.
Required: No.
executorService - The Executor Service.public java.util.concurrent.ExecutorService getExecutorService()
public void setJobs(int index,
java.lang.Object child)
Property: jobs
Description: The child jobs.
Required: No, but pointless if missing.
child - A childprotected void execute()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
StructuralJobexecute in class StructuralJob<java.lang.Object>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionprotected void onStop()
throws FailedToStopException
StructuralJobonStop in class StructuralJob<java.lang.Object>FailedToStopExceptionprotected void startChildStateReflector()
StructuralJobstartChildStateReflector in class StructuralJob<java.lang.Object>public boolean isJoin()
This property is intended to be overridden by sub classes that wish to give that choice to users.