|
||||||||
| 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<Runnable>
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. |
protected void |
onStop()
Allow sub classes to do something on stop. |
void |
setExecutorService(ExecutorService executorService)
Set the ExecutorService. |
void |
setJobs(int index,
Runnable child)
Add a child job. |
protected void |
startChildStateReflector()
|
| Methods inherited from class org.oddjob.framework.StructuralJob |
|---|
addStructuralListener, fireDestroyedState, force, getStateChanger, getStateOp, hardReset, 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 child
public void setJobs(int index,
Runnable child)
Property: jobs
Description: The child jobs.
Required: No, but pointless if missing.
child - A child
protected void execute()
throws InterruptedException
StructuralJob
execute in class StructuralJob<Runnable>InterruptedException
protected void onStop()
throws FailedToStopException
StructuralJob
onStop in class StructuralJob<Runnable>FailedToStopExceptionprotected void startChildStateReflector()
startChildStateReflector in class StructuralJob<Runnable>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||