Interface IBlockoutManager
-
- All Known Implementing Classes:
PentahoBlockoutManager
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 IJobTriggergetBlockOut(String blockOutJobId)List<Job>getBlockOutJobs()booleanisPartiallyBlocked(IJobTrigger scheduleJobTrigger)booleanshouldFireNow()List<IJobTrigger>willBlockSchedules(IJobTrigger testBlockOutJobTrigger)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
-
getBlockOut
IJobTrigger getBlockOut(String blockOutJobId)
- Parameters:
blockOutJobId-- Returns:
- a IBlockOutTrigger that represents the blockOut with the name blockOutName
- Throws:
SchedulerException
-
getBlockOutJobs
List<Job> 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
-
willBlockSchedules
List<IJobTrigger> willBlockSchedules(IJobTrigger testBlockOutJobTrigger)
- Parameters:
testBlockOutJobTrigger-- Returns:
- the
ListofIJobTriggers which would be blocked by theIJobTrigger - 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
-
-