Class ReportScheduleRunner


  • public class ReportScheduleRunner
    extends java.lang.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 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 report
      void 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.