Package com.iizigo
Class StartupJobRescheduler
java.lang.Object
com.iizigo.StartupJobRescheduler
- All Implemented Interfaces:
IJobChangeListener
Class that is used to reschedule all manual or automatic build jobs except the ones IIZI requires. This is used during project loading and workbench start-up.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoidaboutToRun(IJobChangeEvent event) Reschedules all jobs that are not listed as exceptions.voidaddExceptionJob(Job job) Adds a job as exception to what is allowed to run without being rescheduled.voidawake(IJobChangeEvent event) voiddone(IJobChangeEvent event) Called when a job is done (cancel, failure or success).static StartupJobReschedulerGets the started instance.voidrunning(IJobChangeEvent event) voidscheduled(IJobChangeEvent event) voidsleeping(IJobChangeEvent event)
Method Details
getRunnningInstance
Gets the started instance.- Returns:
- The started instance of the rescheduler, or null for none.
addExceptionJob
Adds a job as exception to what is allowed to run without being rescheduled.- Parameters:
job- The job to allow even if the rescheduler is active.
aboutToRun
Reschedules all jobs that are not listed as exceptions.- Specified by:
aboutToRunin interfaceIJobChangeListener- Parameters:
event- The job change event.
done
Called when a job is done (cancel, failure or success).- Specified by:
donein interfaceIJobChangeListener- Parameters:
event- The job change event.
awake
- Specified by:
awakein interfaceIJobChangeListener
running
- Specified by:
runningin interfaceIJobChangeListener
scheduled
- Specified by:
scheduledin interfaceIJobChangeListener
sleeping
- Specified by:
sleepingin interfaceIJobChangeListener