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 Summary
ConstructorsConstructorDescriptionReportScheduleRunner
(GatewayContext context, String projectName, it.sauronsoftware.cron4j.Scheduler scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deschedule
(ProjectResourceId resourceId) Deschedules all registered schedules for a given reportvoid
shutdown()
void
startup()
void
void
update
(ProjectResource resource) void
Called when a project is updated.
-
Constructor Details
-
ReportScheduleRunner
public ReportScheduleRunner(GatewayContext context, String projectName, it.sauronsoftware.cron4j.Scheduler scheduler)
-
-
Method Details
-
startup
public void startup() -
startup
-
shutdown
public void shutdown() -
deschedule
Deschedules all registered schedules for a given report -
update
Called 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
-