|
||||||||
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
org.oddjob.framework.SerializableJob
org.oddjob.jobs.job.StartJob
public class StartJob
Unlike the RunJob
, this job will not monitor or reflect the
state of the started job. To monitor the state of the started job the
job could be followed by a MirrorState
.
The start job won't reset the job to be started. If the job to start
isn't started because it's in the wrong state this job will still
COMPLETE. This job can be preceded by a ResetJob
if resetting
is required.
<oddjob> <job> <sequential> <jobs> <folder name="services"> <jobs> <bean id="cachingPriceService" class="org.oddjob.examples.CachingPriceService"/> <bean id="nonCachingPriceService" class="org.oddjob.examples.NonCachingPriceService"/> </jobs> </folder> <start job="${${priceService}}"/> <bean id="pricingJob" class="org.oddjob.examples.PricingJob" priceService="${${priceService}}"/> </jobs> </sequential> </job> </oddjob>
Field Summary |
---|
Fields inherited from class org.oddjob.framework.SimpleJob |
---|
stateHandler, stop |
Fields inherited from class org.oddjob.framework.BaseComponent |
---|
iconHelper |
Constructor Summary | |
---|---|
StartJob()
|
Method Summary | |
---|---|
protected int |
execute()
Execute this job. |
Runnable |
getJob()
Get the job. |
void |
setJob(Runnable node)
Set the stop node directly. |
Methods inherited from class org.oddjob.framework.SimpleJob |
---|
fireDestroyedState, force, getStateChanger, hardReset, onDestroy, onReset, onStop, run, sleep, 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.Stateful |
---|
addStateListener, lastStateEvent, removeStateListener |
Constructor Detail |
---|
public StartJob()
Method Detail |
---|
public void setJob(Runnable node)
node
- The job.public Runnable getJob()
protected int execute() throws Exception
SimpleJob
execute
in class SimpleJob
Exception
- If the unexpected occurs.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |