public abstract class AbstractStructureJob extends Object implements StructureJob
StructureJob.State| Constructor and Description |
|---|
AbstractStructureJob() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doJob() |
StructureJob.State |
getState() |
void |
job()
Runs the job in background.
|
void |
reset()
Reset the state of the job so that it becomes
StructureJob.State.PENDING. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUserprotected final Object myLock
public final StructureJob.State getState()
getState in interface StructureJobStructureJob.Statepublic void reset()
StructureJobReset the state of the job so that it becomes StructureJob.State.PENDING. Should not be called
when the job is running.
reset in interface StructureJobpublic final void job()
throws Exception
StructureJobRuns the job in background. Before this method is called, all JIRA thread maintenance is done
and the current user is set up to be what StructureJob.getUser() returns.
job in interface StructureJobException - any exception thrown by the job will be logged but won't stop job managerCopyright © 2018 ALM Works. All Rights Reserved.