Class ReportScheduleRunner
java.lang.Object
com.inductiveautomation.reporting.gateway.scheduler.ReportScheduleRunner
Filename: ReportScheduleRunner.java
 Created on Feb 06, 2015
 Author: Kathy Applebaum
 Copyright Inductive Automation 2015
 Project: Reporting
 
This class tracks the report schedules for a given project so they can be created, started and stopped when the project loads or changes.
- 
Constructor SummaryConstructorsConstructorDescriptionReportScheduleRunner(GatewayContext context, String projectName, it.sauronsoftware.cron4j.Scheduler scheduler) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeschedule(ProjectResourceId resourceId) Deschedules all registered schedules for a given reportvoidshutdown()voidstartup()voidvoidupdate(ProjectResource resource) voidCalled when a project is updated.
- 
Constructor Details- 
ReportScheduleRunnerpublic ReportScheduleRunner(GatewayContext context, String projectName, it.sauronsoftware.cron4j.Scheduler scheduler) 
 
- 
- 
Method Details- 
startuppublic void startup()
- 
startup
- 
shutdownpublic void shutdown()
- 
descheduleDeschedules all registered schedules for a given report
- 
updateCalled when a project is updated. We don't know what resources have been added or deleted, so we'll deschedule all and then schedule what's in the project.- Parameters:
- projectName- If null or empty is a no-op. If project does not exist, only deschedules existing.
 
- 
update
 
-