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 TypeMethodDescriptionvoid
aboutToRun
(IJobChangeEvent event) Reschedules all jobs that are not listed as exceptions.void
addExceptionJob
(Job job) Adds a job as exception to what is allowed to run without being rescheduled.void
awake
(IJobChangeEvent event) void
done
(IJobChangeEvent event) Called when a job is done (cancel, failure or success).static StartupJobRescheduler
Gets the started instance.void
running
(IJobChangeEvent event) void
scheduled
(IJobChangeEvent event) void
sleeping
(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:
aboutToRun
in interfaceIJobChangeListener
- Parameters:
event
- The job change event.
done
Called when a job is done (cancel, failure or success).- Specified by:
done
in interfaceIJobChangeListener
- Parameters:
event
- The job change event.
awake
- Specified by:
awake
in interfaceIJobChangeListener
running
- Specified by:
running
in interfaceIJobChangeListener
scheduled
- Specified by:
scheduled
in interfaceIJobChangeListener
sleeping
- Specified by:
sleeping
in interfaceIJobChangeListener