Class ReportScheduleRunner
- java.lang.Object
-
- com.inductiveautomation.reporting.gateway.scheduler.ReportScheduleRunner
-
public class ReportScheduleRunner extends java.lang.Object
Filename: ReportScheduleRunner.java Created on Feb 06, 2015 Author: Kathy Applebaum Copyright Inductive Automation 2015 Project: ReportingThis 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
Constructors Constructor Description ReportScheduleRunner(GatewayContext context, java.lang.String projectName, it.sauronsoftware.cron4j.Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deschedule(ProjectResourceId resourceId)
Deschedules all registered schedules for a given reportvoid
shutdown()
void
startup()
void
startup(java.lang.String projectName)
void
update(ProjectResource resource)
void
update(java.lang.String projectName)
Called when a project is updated.
-
-
-
Constructor Detail
-
ReportScheduleRunner
public ReportScheduleRunner(GatewayContext context, java.lang.String projectName, it.sauronsoftware.cron4j.Scheduler scheduler)
-
-
Method Detail
-
startup
public void startup()
-
startup
public void startup(java.lang.String projectName)
-
shutdown
public void shutdown()
-
deschedule
public void deschedule(ProjectResourceId resourceId)
Deschedules all registered schedules for a given report
-
update
public void update(java.lang.String projectName)
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
public void update(ProjectResource resource)
-
-