|
|||||||||
| 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.SimpleJob
An abstract implementation of a job which provides commen functionality to concrete sub classes.
| Field Summary |
| 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 | |
SimpleJob()
|
|
| Method Summary | |
protected abstract int |
execute()
Execute this job. |
void |
hardReset()
Perform a hard reset on the job. |
protected boolean |
independant()
|
void |
onStop()
|
void |
run()
Implement the main execute method for a job. |
void |
softReset()
Perform a soft reset on the job. |
void |
stop()
Allow subclasses to indicate they are stopping. |
| 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, onDestroy, 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 |
| Constructor Detail |
public SimpleJob()
| Method Detail |
protected boolean independant()
independant in class BasePrimary
protected abstract int 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 final void stop()
public void onStop()
public void softReset()
softReset in interface Resetablepublic void hardReset()
hardReset in interface Resetable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||