psdi.app.pm

Class PMForecastCronTask

  • All Implemented Interfaces:
    CronTask


    public class PMForecastCronTask
    extends SimpleCronTask
    This is a Cron task that generates PM Forecast. Cron task parameters are used as input to generate PM Forecast. The parameters are siteid, orgid, whereclause, forecastfordays, emailto, logfile. The "WhereClause" for getting the PMSet is read from cron task parameter 'whereclause' for a given site crontask parameter 'siteid' and given crontask parameter 'orgid'. For each of the PM in this set, generateWork() will be called by passing crontask parameter 'forecastfordays' of the site . After the forecast is generated, the results are e-mailed to the address specified by the crontask parameter 'emailto' and added to the logfile specified by the crontask parameter 'logfile'.