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 String
BLOCK_OUT_JOB_NAME
static String
DURATION_PARAM
static String
SCHEDULED_FIRE_TIME
static String
TIME_ZONE_PARAM
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<IJob>
getBlockOutJobs()
boolean
isPartiallyBlocked(IJobTrigger scheduleJobTrigger)
boolean
shouldFireNow()
boolean
willFire(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
IJobTrigger
will fire, at least once, given the current list ofIJobTrigger
s - 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
IJobTrigger
is blocked, at least partially, by at least a singleIJobTrigger
, provided the list of registeredIJobTrigger
s - Throws:
SchedulerException
-
-