|
||||||||
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.persist.ArchiveJob
public class ArchiveJob
ArchiveBrowserJob
can be used to browse an archive created with this job.<oddjob id="this"> <job> <sequential> <jobs> <scheduling:timer id="the-timer" xmlns:scheduling="http://rgordon.co.uk/oddjob/scheduling"> <schedule> <schedules:count count="3" xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"> <refinement> <schedules:interval interval="00:00:00.100"/> </refinement> </schedules:count> </schedule> <job> <archive archiveName="Batch_01"> <archiver> <file-persister dir="${this.args[0]}"/> </archiver> <archiveIdentifier> <format date="${the-timer.current.fromDate}" format="mm_ss_SSS"/> </archiveIdentifier> <job> <echo>Run at ${the-timer.current.fromDate}</echo> </job> </archive> </job> </scheduling:timer> </jobs> </sequential> </job> </oddjob>
Field Summary | |
---|---|
protected boolean |
stop
Stop flag. |
Fields inherited from class org.oddjob.framework.BaseComponent |
---|
iconHelper |
Constructor Summary | |
---|---|
ArchiveJob()
Constructor. |
Method Summary | |
---|---|
void |
addStructuralListener(StructuralListener listener)
Add a listener. |
protected void |
execute()
|
protected void |
fireDestroyedState()
Internal method to fire state. |
Object |
getArchiveIdentifier()
|
String |
getArchiveName()
|
OddjobPersister |
getArchiver()
|
protected StateChanger<ParentState> |
getStateChanger()
|
boolean |
hardReset()
Perform a hard reset on the job. |
void |
removeStructuralListener(StructuralListener listener)
Remove a listener. |
void |
run()
Implement the main execute method for a job. |
void |
setArchiveIdentifier(Object archive)
|
void |
setArchiveName(String path)
|
void |
setArchiver(OddjobPersister archiver)
|
void |
setJob(Runnable job)
|
boolean |
softReset()
Perform a soft reset on the job. |
protected ParentStateHandler |
stateHandler()
|
void |
stop()
Implementation for a typical 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, onDestroy, 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 |
Field Detail |
---|
protected transient volatile boolean stop
Constructor Detail |
---|
public ArchiveJob()
Method Detail |
---|
protected ParentStateHandler stateHandler()
stateHandler
in class BaseComponent
protected StateChanger<ParentState> getStateChanger()
public final void run()
run
in interface Runnable
protected void execute() throws Throwable
Throwable
public void stop() throws FailedToStopException
This stop implementation doesn't check that the job is executing as stop messages must cascade down the hierarchy to manually started jobs.
stop
in interface Stoppable
FailedToStopException
public boolean softReset()
softReset
in interface Resetable
public boolean hardReset()
hardReset
in interface Resetable
public Object getArchiveIdentifier()
public void setArchiveIdentifier(Object archive)
public String getArchiveName()
public void setArchiveName(String path)
public OddjobPersister getArchiver()
public void setArchiver(OddjobPersister archiver)
public void addStructuralListener(StructuralListener listener)
addStructuralListener
in interface Structural
listener
- The listener.public void removeStructuralListener(StructuralListener listener)
removeStructuralListener
in interface Structural
listener
- The listener.public void setJob(Runnable job)
Property: job
Description: The child job.
Required: No, but pointless if missing.
job
- protected void fireDestroyedState()
fireDestroyedState
in class BaseComponent
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |