|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.StructuralJob<Object>
org.oddjob.framework.SimultaneousStructural
public abstract class SimultaneousStructural
An abstract base class for Structural jobs where all child jobs can run simultaneously.
Field Summary |
---|
Fields inherited from class org.oddjob.framework.StructuralJob |
---|
childHelper, childStateReflector, stateHandler, stop, structuralState |
Fields inherited from class org.oddjob.framework.BaseComponent |
---|
iconHelper |
Constructor Summary | |
---|---|
SimultaneousStructural()
|
Method Summary | |
---|---|
protected void |
execute()
Execute this job. |
boolean |
isJoin()
|
protected void |
onStop()
Allow sub classes to do something on stop. |
void |
setExecutorService(ExecutorService executorService)
Set the ExecutorService . |
void |
setJobs(int index,
Object child)
Add a child job. |
protected void |
startChildStateReflector()
|
Methods inherited from class org.oddjob.framework.StructuralJob |
---|
addStructuralListener, fireDestroyedState, force, getInitialStateOp, getStateChanger, hardReset, isStop, onDestroy, onReset, removeStructuralListener, run, softReset, stateHandler, stop |
Methods inherited from class org.oddjob.framework.BasePrimary |
---|
configure, getName, logger, logger, loggerName, save, setName, toString |
Methods inherited from class org.oddjob.framework.BaseComponent |
---|
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.oddjob.Stoppable |
---|
stop |
Methods inherited from interface org.oddjob.Stateful |
---|
addStateListener, lastStateEvent, removeStateListener |
Constructor Detail |
---|
public SimultaneousStructural()
Method Detail |
---|
@Inject public void setExecutorService(ExecutorService executorService)
ExecutorService
.
Property: executorService
Description: The ExecutorService to use. This will be automatically set by Oddjob.
Required: No.
child
- A childpublic void setJobs(int index, Object child)
Property: jobs
Description: The child jobs.
Required: No, but pointless if missing.
child
- A childprotected void execute() throws InterruptedException, ExecutionException
StructuralJob
execute
in class StructuralJob<Object>
InterruptedException
ExecutionException
protected void onStop() throws FailedToStopException
StructuralJob
onStop
in class StructuralJob<Object>
FailedToStopException
protected void startChildStateReflector()
startChildStateReflector
in class StructuralJob<Object>
public boolean isJoin()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |