/** * Get the next fire time for the given job name SchedulerJob * * @param object unwrapped XObject job for which the next fire time will be given * @return the next Date the job will be fired at */ public Date getNextFireTime(BaseObject object, XWikiContext context) throws SchedulerPluginException { return getTrigger(object, context).getNextFireTime(); }
/** * Get the next fire time for the given job name SchedulerJob * * @param object unwrapped XObject job for which the next fire time will be given * @return the next Date the job will be fired at */ public Date getNextFireTime(BaseObject object, XWikiContext context) throws SchedulerPluginException { return getTrigger(object, context).getNextFireTime(); }
/** * Give, for a BaseObject job in a {@link JobState#STATE_NORMAL} state, the previous date at which the job has been * executed. Note that this method does not compute a date from the CRON expression, it only returns a date value * which is set each time the job is executed. If the job has never been fired this method will return null. * * @param object unwrapped XObject job for which the next fire time will be given * @param context the XWiki context * @return the next Date the job will be fired at, null if the job has never been fired */ public Date getPreviousFireTime(BaseObject object, XWikiContext context) throws SchedulerPluginException { return getTrigger(object, context).getPreviousFireTime(); }
/** * Give, for a BaseObject job in a {@link JobState#STATE_NORMAL} state, the previous date at which the job has been * executed. Note that this method does not compute a date from the CRON expression, it only returns a date value * which is set each time the job is executed. If the job has never been fired this method will return null. * * @param object unwrapped XObject job for which the next fire time will be given * @param context the XWiki context * @return the next Date the job will be fired at, null if the job has never been fired */ public Date getPreviousFireTime(BaseObject object, XWikiContext context) throws SchedulerPluginException { return getTrigger(object, context).getPreviousFireTime(); }
if (getTrigger(object, context).compareTo(trigger) != 0) { LOGGER.debug("Reschedule Job: [{}]", object.getStringValue("jobName"));
if (getTrigger(object, context).compareTo(trigger) != 0) { LOG.debug("Reschedule Job : " + object.getStringValue("jobName"));