Package org.oddjob.jobs.job
Class DependsJob
java.lang.Object
org.oddjob.framework.extend.BaseComponent
org.oddjob.framework.extend.BasePrimary
org.oddjob.framework.extend.SimpleJob
org.oddjob.jobs.job.DependsJob
- All Implemented Interfaces:
Runnable,ArooaContextAware,ArooaSessionAware,Forceable,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,StateListener,Stateful,Stoppable
Deprecated.
- Author:
- Rob Gordon
- If the other job is in a READY state, this job will run the other job.
- If the other job is in an EXECUTING state, this job will wait.
- If the other job has finished this job will reflect the completion state.
Description
This job is deprecated, useRunJob instead.
A job which depends on another job.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intexecute()Deprecated.Execute this job.getJob()Deprecated.Get the node to stop.voidjobStateChange(StateEvent event) Deprecated.Triggered when the job state changes.voidDeprecated.Set the stop node directly.Methods inherited from class org.oddjob.framework.extend.SimpleJob
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, onStop, run, sleep, softReset, stateHandler, stopMethods inherited from class org.oddjob.framework.extend.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toStringMethods inherited from class org.oddjob.framework.extend.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
-
Constructor Details
-
DependsJob
public DependsJob()Deprecated.
-
-
Method Details
-
setJob
Deprecated.Set the stop node directly.- Parameters:
node- The node to stop.
-
getJob
Deprecated.Get the node to stop.- Returns:
- The node.
-
execute
Deprecated.Description copied from class:SimpleJobExecute this job. -
jobStateChange
Deprecated.Description copied from interface:StateListenerTriggered when the job state changes.- Specified by:
jobStateChangein interfaceStateListener- Parameters:
event- The job state event.
-
RunJobinstead.