public class StartJob extends SerializableJob
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>
Constructor and Description |
---|
StartJob() |
Modifier and Type | Method and Description |
---|---|
protected int |
execute()
Execute this job.
|
Runnable |
getJob()
Get the job.
|
void |
setJob(Runnable node)
Set the stop node directly.
|
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, onStop, run, sleep, softReset, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener