Package org.openhab.core.scheduler
Class CronAdjuster
java.lang.Object
org.openhab.core.scheduler.CronAdjuster
- All Implemented Interfaces:
- TemporalAdjuster,- SchedulerTemporalAdjuster
This class creates a 
TemporalAdjuster that takes a temporal and adjust it to the next
 deadline based on a
 cron specification.- Author:
- Peter Kriens - Initial contribution, Hilbrand Bouwkamp - code cleanup
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCronAdjuster(String specification) Constructs the class with a cron specification. containing variables and a cron expression at the last line.
- 
Method Summary
- 
Field Details- 
ANNUALLY- See Also:
 
- 
YEARLY- See Also:
 
- 
MONTHLY- See Also:
 
- 
WEEKLY- See Also:
 
- 
DAILY- See Also:
 
- 
HOURLY- See Also:
 
- 
REBOOT- See Also:
 
 
- 
- 
Constructor Details- 
CronAdjusterConstructs the class with a cron specification. containing variables and a cron expression at the last line.
 
- 
- 
Method Details- 
getEnv- Returns:
- Returns a map with variables passed in the specification.
 
- 
isRebootpublic boolean isReboot()- Returns:
- Returns true if this cron has been initialized with @reboot.
 
- 
isDoneDescription copied from interface:SchedulerTemporalAdjusterUsed by the scheduler to determine if it should continue scheduling jobs. If returns true the implementation of this interface determines the job should not run again given. No new job will be scheduled.- Specified by:
- isDonein interface- SchedulerTemporalAdjuster
- Parameters:
- temporal- The temporal to determine if the next run should be scheduled
- Returns:
- true if running is done and the job should not run anymore.
 
- 
adjustInto- Specified by:
- adjustIntoin interface- TemporalAdjuster
 
 
-