@Override public String toString() { return "Trigger '" + getName() + "', triggerClass: " + getClass().getSimpleName() + ", jobName: " + getJobName() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())) + ", calendar: " + getCalendarName() + ", misfireInstruction: " + getMisfireInstruction() + ", priority: " + getPriority() + ", nextFireTime: " + getNextFireTime(); } }
/** * <p> * Validates whether the properties of the <code>JobDetail</code> are valid for submission into a <code>Scheduler</code>. * * @throws IllegalStateException if a required property (such as Name, Group, Class) is not set. */ @Override public void validate() throws SchedulerException { super.validate(); if (repeatCount != 0 && repeatInterval < 1) { throw new SchedulerException("Repeat Interval cannot be zero."); } }
@Override public String toString() { return super.toString() + ", cronEx: " + getCronExpression() + ", timeZone: " + getTimeZone().getID(); }
@Override public Object clone() { CronTriggerImpl copy = (CronTriggerImpl) super.clone(); if (cronEx != null) { copy.setCronExpression(new CronExpression(cronEx)); } return copy; }
@Override public CompletedExecutionInstruction executionComplete(JobExecutionContext context, JobExecutionException result) { if (result != null && result.refireImmediately()) { return CompletedExecutionInstruction.RE_EXECUTE_JOB; } if (result != null && result.unscheduleFiringTrigger()) { return CompletedExecutionInstruction.SET_TRIGGER_COMPLETE; } if (result != null && result.unscheduleAllTriggers()) { return CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_COMPLETE; } if (!mayFireAgain()) { return CompletedExecutionInstruction.DELETE_TRIGGER; } return CompletedExecutionInstruction.NOOP; }
@Override public String toString() { return super.toString() + ", cronEx: " + getCronExpression() + ", timeZone: " + getTimeZone().getID(); } }
@Override public Object clone() { CronTriggerImpl copy = (CronTriggerImpl) super.clone(); if (cronEx != null) { copy.setCronExpression(new CronExpression(cronEx)); } return copy; }
@Override public CompletedExecutionInstruction executionComplete(JobExecutionContext context, JobExecutionException result) { if (result != null && result.refireImmediately()) { return CompletedExecutionInstruction.RE_EXECUTE_JOB; } if (result != null && result.unscheduleFiringTrigger()) { return CompletedExecutionInstruction.SET_TRIGGER_COMPLETE; } if (result != null && result.unscheduleAllTriggers()) { return CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_COMPLETE; } if (!mayFireAgain()) { return CompletedExecutionInstruction.DELETE_TRIGGER; } return CompletedExecutionInstruction.NOOP; }
@Override public String toString() { return "Trigger '" + getName() + "', triggerClass: " + getClass().getSimpleName() + ", jobName: " + getJobName() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())) + ", calendar: " + getCalendarName() + ", misfireInstruction: " + getMisfireInstruction() + ", priority: " + getPriority() + ", nextFireTime: " + getNextFireTime(); } }
@Override public String toString() { return super.toString() + ", cronEx: " + getCronExpression() + ", timeZone: " + getTimeZone().getID(); }
/** * Validates whether the properties of the <code>JobDetail</code> are valid for submission into a * <code>Scheduler</code>. * * @throws IllegalStateException if a required property (such as Name, Group, Class) is not set. */ @Override public void validate() throws SchedulerException { super.validate(); if (repeatCount != 0 && repeatInterval < 1) { throw new SchedulerException("Repeat Interval cannot be zero."); } }
@Override public Object clone() { CronTriggerImpl copy = (CronTriggerImpl) super.clone(); if (cronEx != null) { copy.setCronExpression(new CronExpression(cronEx)); } return copy; }
@Override public CompletedExecutionInstruction executionComplete( JobExecutionContext context, JobExecutionException result) { if (result != null && result.refireImmediately()) { return CompletedExecutionInstruction.RE_EXECUTE_JOB; } if (result != null && result.unscheduleFiringTrigger()) { return CompletedExecutionInstruction.SET_TRIGGER_COMPLETE; } if (result != null && result.unscheduleAllTriggers()) { return CompletedExecutionInstruction.SET_ALL_JOB_TRIGGERS_COMPLETE; } if (!mayFireAgain()) { return CompletedExecutionInstruction.DELETE_TRIGGER; } return CompletedExecutionInstruction.NOOP; }
@Override public String toString() { return "Trigger '" + getName() + "', triggerClass: " + getClass().getSimpleName() + ", jobName: " + getJobName() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())) + ", calendar: " + getCalendarName() + ", misfireInstruction: " + getMisfireInstruction() + ", priority: " + getPriority() + ", nextFireTime: " + getNextFireTime(); } }
/** * Trigger equality is based upon the equality of the Trigger name. * * @return true if the key of this Trigger equals that of the given Trigger. */ @Override public boolean equals(Object o) { if (!(o instanceof Trigger)) { return false; } Trigger other = (Trigger) o; if (other.getName() == null || getName() == null) { return false; } return getName().equals(other.getName()); }
@Override public String toString() { return super.toString() + ", repeatCount: " + getRepeatCount() + ", repeatInterval: " + getRepeatInterval(); } }
/** * <p> * Validates whether the properties of the <code>JobDetail</code> are valid for submission into a <code>Scheduler</code>. * * @throws IllegalStateException if a required property (such as Name, Group, Class) is not set. */ @Override public void validate() throws SchedulerException { super.validate(); if (repeatCount != 0 && repeatInterval < 1) { throw new SchedulerException("Repeat Interval cannot be zero."); } }