Interface IBlockoutManager
-
public interface IBlockoutManager- Author:
- wseyler Interface for managing Block-outs (time when schedules should NOT be executed)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBLOCK_OUT_JOB_NAMEstatic StringDURATION_PARAMstatic StringSCHEDULED_FIRE_TIMEstatic StringTIME_ZONE_PARAM
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<IJob>getBlockOutJobs()booleanisPartiallyBlocked(IJobTrigger scheduleJobTrigger)booleanshouldFireNow()booleanwillFire(IJobTrigger scheduleJobTrigger)
-
-
-
Field Detail
-
DURATION_PARAM
static final String DURATION_PARAM
- See Also:
- Constant Field Values
-
TIME_ZONE_PARAM
static final String TIME_ZONE_PARAM
- See Also:
- Constant Field Values
-
BLOCK_OUT_JOB_NAME
static final String BLOCK_OUT_JOB_NAME
- See Also:
- Constant Field Values
-
SCHEDULED_FIRE_TIME
static final String SCHEDULED_FIRE_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBlockOutJobs
List<IJob> getBlockOutJobs()
- Returns:
- a list of jobs essentially should be used instead of getBlockOuts which is deprecated
-
willFire
boolean willFire(IJobTrigger scheduleJobTrigger)
- Parameters:
scheduleJobTrigger-IJobTrigger- Returns:
- whether the
IJobTriggerwill fire, at least once, given the current list ofIJobTriggers - Throws:
SchedulerException
-
shouldFireNow
boolean shouldFireNow()
- Returns:
- true if there are no current blockOuts active at the moment this method is called
- Throws:
SchedulerException
-
isPartiallyBlocked
boolean isPartiallyBlocked(IJobTrigger scheduleJobTrigger)
- Parameters:
scheduleJobTrigger-IJobTrigger- Returns:
- whether the
IJobTriggeris blocked, at least partially, by at least a singleIJobTrigger, provided the list of registeredIJobTriggers - Throws:
SchedulerException
-
-