Class AbstractStructureJob
Object
AbstractStructureJob
- All Implemented Interfaces:
StructureJob
- Direct Known Subclasses:
SystemStructureJob
This is the basic implementation of a structure job, that should be extended by the actual job code.
This class implements most of the housekeeping methods.
- Author:
- Igor Sereda todo actually move most of the StructureJob methods to under the implementation (implement lifecycle in a peer class)
-
Nested Class Summary
Nested classes/interfaces inherited from interface StructureJob
StructureJob.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoJob()final StructureJob.StategetState()final voidjob()Runs the job in background.voidreset()Reset the state of the job so that it becomesStructureJob.State.PENDING.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface StructureJob
getUser
-
Field Details
-
myLock
-
-
Constructor Details
-
AbstractStructureJob
public AbstractStructureJob()
-
-
Method Details
-
getState
- Specified by:
getStatein interfaceStructureJob- Returns:
- the current state of the job
- See Also:
-
toString
-
reset
public void reset()Description copied from interface:StructureJobReset the state of the job so that it becomes
StructureJob.State.PENDING. Should not be called when the job is running.- Specified by:
resetin interfaceStructureJob
-
job
Description copied from interface: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.- Specified by:
jobin interfaceStructureJob- Throws:
Exception- any exception thrown by the job will be logged but won't stop job manager
-
doJob
- Throws:
Exception
-