|
|||||||||
| 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
An abstract implementation of a job which provides commen functionality to concrete sub classes.
| Field Summary | |
protected StatefulChildHelper |
childHelper
Intended to be used by decendent classes to help implement Structural. |
| Fields inherited from class org.oddjob.framework.BasePrimary |
stop |
| Fields inherited from class org.oddjob.framework.BaseComponent |
changes, destroyed, iconHelper, location, lock, stateHandler |
| Constructor Summary | |
StructuralJob()
|
|
| Method Summary | |
void |
addStructuralListener(StructuralListener listener)
Add a listener. |
protected abstract void |
execute()
Execute this job. |
void |
hardReset()
Perform a hard reset on the job. |
protected boolean |
independant()
|
void |
onDestroy()
Destroy this component. |
void |
removeStructuralListener(StructuralListener listener)
Remove a listener. |
void |
run()
Implement the main execute method for a job. |
void |
softReset()
Perform a soft reset on the job. |
void |
stop()
Implementation for a typical stop. |
| Methods inherited from class org.oddjob.framework.BasePrimary |
configurationComplete, getLogger, getName, logger, setContext, setJobStateReady, setLogger, setName, sleep, toString |
| Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addJobStateListener, addPropertyChangeListener, arooaRuntime, arooaRuntime, canHardReset, canSoftReset, configure, destroy, getLocation, iconForId, lastJobStateEvent, removeIconListener, removeJobStateListener, removePropertyChangeListener, setJobStateComplete, setJobStateException, setJobStateNotComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.oddjob.Stateful |
addJobStateListener, removeJobStateListener |
| Field Detail |
protected StatefulChildHelper childHelper
| Constructor Detail |
public StructuralJob()
| Method Detail |
protected boolean independant()
independant in class BasePrimary
protected abstract void execute()
throws java.lang.Throwable
java.lang.Exception - If the unexpected occurs.
java.lang.Throwable
public final void run()
throws OddjobLockedException
run in interface java.lang.RunnableOddjobLockedExceptionpublic void stop()
This stop implementation doesn't check that the job is executing as stop messages must cascade down the hierarchy to manually started jobs.
public void softReset()
softReset in interface Resetablepublic void hardReset()
hardReset in interface Resetablepublic void addStructuralListener(StructuralListener listener)
addStructuralListener in interface Structurallistener - The listener.public void removeStructuralListener(StructuralListener listener)
removeStructuralListener in interface Structurallistener - The listner.public void onDestroy()
onDestroy in class BaseComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||