|
||||||||
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<Object>
org.oddjob.jobs.job.RunJob
public class RunJob
This job reflects the state of the job being executed.
JMXClientJob
job has an
example that uses run
to run a job on a
remote server.Field Summary |
---|
Fields inherited from class org.oddjob.framework.StructuralJob |
---|
childHelper, childStateReflector, stateHandler, stop, structuralState |
Fields inherited from class org.oddjob.framework.BaseComponent |
---|
iconHelper |
Constructor Summary | |
---|---|
RunJob()
|
Method Summary | |
---|---|
void |
addOwnerStateListener(OwnerStateListener listener)
Add a listener. |
protected void |
execute()
Execute this job. |
protected StateOperator |
getInitialStateOp()
Subclasses must provide the StateOperator that will decide
how to evaluate the children's state. |
Object |
getJob()
Get the job. |
boolean |
hardReset()
Perform a hard reset on the job. |
ConfigurationSession |
provideConfigurationSession()
Provide a ConfigurationSession . |
void |
removeOwnerStateListener(OwnerStateListener listener)
Remove a listener. |
DesignFactory |
rootDesignFactory()
Get the design factory for the configuration. |
ArooaElement |
rootElement()
Get the root element. |
void |
setJob(Object node)
Set the stop node directly. |
protected void |
sleep(long waitTime)
Sleep. |
boolean |
softReset()
Perform a soft reset on the job. |
Methods inherited from class org.oddjob.framework.StructuralJob |
---|
addStructuralListener, fireDestroyedState, force, getStateChanger, isStop, onDestroy, onReset, onStop, removeStructuralListener, run, startChildStateReflector, 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.Structural |
---|
addStructuralListener, removeStructuralListener |
Methods inherited from interface org.oddjob.Stoppable |
---|
stop |
Methods inherited from interface org.oddjob.Stateful |
---|
addStateListener, lastStateEvent, removeStateListener |
Constructor Detail |
---|
public RunJob()
Method Detail |
---|
public void setJob(Object node)
node
- The job.public Object getJob()
protected StateOperator getInitialStateOp()
StructuralJob
StateOperator
that will decide
how to evaluate the children's state.
getInitialStateOp
in class StructuralJob<Object>
protected void execute() throws Exception
StructuralJob
execute
in class StructuralJob<Object>
Exception
- If the unexpected occurs.protected void sleep(long waitTime)
SimpleJob.sleep(long)
.
waitTime
- Time in milliseconds to sleep for.public boolean softReset()
softReset
in interface Resetable
softReset
in class StructuralJob<Object>
public boolean hardReset()
hardReset
in interface Resetable
hardReset
in class StructuralJob<Object>
public void addOwnerStateListener(OwnerStateListener listener)
ConfigurationOwner
addOwnerStateListener
in interface ConfigurationOwner
public void removeOwnerStateListener(OwnerStateListener listener)
ConfigurationOwner
removeOwnerStateListener
in interface ConfigurationOwner
public ConfigurationSession provideConfigurationSession()
ConfigurationOwner
ConfigurationSession
.
provideConfigurationSession
in interface ConfigurationOwner
ConfigurationSession
. My be null if no session is available.public DesignFactory rootDesignFactory()
ConfigurationOwner
rootDesignFactory
in interface ConfigurationOwner
public ArooaElement rootElement()
ConfigurationOwner
rootElement
in interface ConfigurationOwner
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |