Class ReportSchedulerTask
- java.lang.Object
- 
- com.inductiveautomation.reporting.gateway.scheduler.ReportSchedulerTask
 
- 
- All Implemented Interfaces:
- java.lang.Runnable
 
 public class ReportSchedulerTask extends java.lang.Object implements java.lang.RunnableFilename: 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 SummaryConstructors Constructor Description ReportSchedulerTask(GatewayContext context, java.lang.String projectName, ReportResource reportResource, ReportSchedule reportSchedule, java.lang.String reportName, java.lang.String reportPath)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbstractReportActioncreateReportDistributionAction(GatewayContext context, ReportExecutionContext reportExecutionContext, java.lang.String projectName, java.lang.String actionId)voidrun()java.util.List<java.lang.String>runImmediate(AbstractReportActionConfig config)java.util.List<java.lang.String>runImmediate(AbstractReportActionConfig config, java.util.Map<java.lang.String,java.lang.Object> parameterData)voidsetIsScheduledTask(boolean isScheduledTask)
 
- 
- 
- 
Constructor Detail- 
ReportSchedulerTaskpublic ReportSchedulerTask(GatewayContext context, java.lang.String projectName, ReportResource reportResource, ReportSchedule reportSchedule, java.lang.String reportName, java.lang.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 Detail- 
createReportDistributionAction@Nonnull public static AbstractReportAction createReportDistributionAction(GatewayContext context, ReportExecutionContext reportExecutionContext, java.lang.String projectName, java.lang.String actionId) 
 - 
setIsScheduledTaskpublic void setIsScheduledTask(boolean isScheduledTask) 
 - 
runpublic void run() - Specified by:
- runin interface- java.lang.Runnable
 
 - 
runImmediatepublic java.util.List<java.lang.String> runImmediate(AbstractReportActionConfig config) 
 - 
runImmediatepublic java.util.List<java.lang.String> runImmediate(AbstractReportActionConfig config, java.util.Map<java.lang.String,java.lang.Object> parameterData) 
 
- 
 
-