Class ReportScheduleRunner

java.lang.Object
com.inductiveautomation.reporting.gateway.scheduler.ReportScheduleRunner

public class ReportScheduleRunner extends Object
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 Details

    • ReportScheduleRunner

      public ReportScheduleRunner(GatewayContext context, String projectName, it.sauronsoftware.cron4j.Scheduler scheduler)
  • Method Details

    • startup

      public void startup()
    • startup

      public void startup(String projectName)
    • shutdown

      public void shutdown()
    • deschedule

      public void deschedule(ProjectResourceId resourceId)
      Deschedules all registered schedules for a given report
    • update

      public void update(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)