Class ReportSchedulerTask
java.lang.Object
com.inductiveautomation.reporting.gateway.scheduler.ReportSchedulerTask
- All Implemented Interfaces:
- Runnable
Filename: ReportSchedulerTask.java Created on Feb 06, 2015 Author: Kathy Applebaum Copyright Inductive Automation
 2015 Project: Reporting
 
 This class creates a task that is used by the cron4j scheduler when the schedule is active. The task gets the data
 for a report, creates the report, and then sends it to all the distributions for this schedule. The constructor takes
 the entire ReportResource, but also needs the particular ReportSchedule, since there can be more than one for the
 resource.
- 
Constructor SummaryConstructorsConstructorDescriptionReportSchedulerTask(GatewayContext context, String projectName, ReportResource reportResource, ReportSchedule reportSchedule, String reportName, String reportPath) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic AbstractReportActioncreateReportDistributionAction(GatewayContext context, ReportExecutionContext reportExecutionContext, String projectName, String actionId) voidrun()runImmediate(AbstractReportActionConfig config, Map<String, Object> parameterData) voidsetIsScheduledTask(boolean isScheduledTask) 
- 
Constructor Details- 
ReportSchedulerTaskpublic ReportSchedulerTask(GatewayContext context, String projectName, ReportResource reportResource, ReportSchedule reportSchedule, String reportName, String reportPath) - Parameters:
- reportSchedule- - the particular schedule we're scheduling. (The reportResource contains multiple schedules.)
- reportName- - used for logging and parameters
- reportPath- - used for logging and parameters
 
 
- 
- 
Method Details- 
createReportDistributionAction@Nonnull public static AbstractReportAction createReportDistributionAction(GatewayContext context, ReportExecutionContext reportExecutionContext, String projectName, String actionId) 
- 
setIsScheduledTaskpublic void setIsScheduledTask(boolean isScheduledTask) 
- 
runpublic void run()
- 
runImmediate
- 
runImmediate
 
-