/** * <p> * Create a <code>CronTrigger</code> with no settings. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> */ public CronTriggerImpl() { super(); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with no settings. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> */ public CronTriggerImpl() { super(); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with the given name and group. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> * * @deprecated use a TriggerBuilder instead */ @Deprecated public CronTriggerImpl(String name, String group) { super(name, group); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with the given name and group. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> * * @deprecated use a TriggerBuilder instead */ @Deprecated public CronTriggerImpl(String name, String group) { super(name, group); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
public static OperableTrigger newTrigger(Map<String, Object> attrMap) throws ParseException { CronTriggerImpl result = new CronTriggerImpl(); result.setCronExpression((String) attrMap.get("cronExpression")); if(attrMap.containsKey("timeZone")) { result.setTimeZone(TimeZone.getTimeZone((String)attrMap.get("timeZone"))); } TriggerSupport.initializeTrigger(result, attrMap); return result; } }
/** * <p> * Create a <code>CronTrigger</code> with the given name and group, and * associated with the identified <code>{@link org.quartz.JobDetail}</code>. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> * * @deprecated use a TriggerBuilder instead */ @Deprecated public CronTriggerImpl(String name, String group, String jobName, String jobGroup) { super(name, group, jobName, jobGroup); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with the given name and group, and * associated with the identified <code>{@link org.quartz.JobDetail}</code>. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> * * @deprecated use a TriggerBuilder instead */ @Deprecated public CronTriggerImpl(String name, String group, String jobName, String jobGroup) { super(name, group, jobName, jobGroup); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with the given name, group and * expression. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> * * @deprecated use a TriggerBuilder instead */ @Deprecated public CronTriggerImpl(String name, String group, String cronExpression) throws ParseException { super(name, group); setCronExpression(cronExpression); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * <p> * Create a <code>CronTrigger</code> with the given name, group and * expression. * </p> * * <p> * The start-time will also be set to the current time, and the time zone * will be set the the system's default time zone. * </p> * * @deprecated use a TriggerBuilder instead */ @Deprecated public CronTriggerImpl(String name, String group, String cronExpression) throws ParseException { super(name, group); setCronExpression(cronExpression); setStartTime(new Date()); setTimeZone(TimeZone.getDefault()); }
public static OperableTrigger newTrigger(CompositeData cData) throws ParseException { CronTriggerImpl result = new CronTriggerImpl(); result.setCronExpression((String) cData.get("cronExpression")); if(cData.containsKey("timeZone")) { result.setTimeZone(TimeZone.getTimeZone((String)cData.get("timeZone"))); } TriggerSupport.initializeTrigger(result, cData); return result; }
setTimeZone(TimeZone.getDefault()); } else { setTimeZone(timeZone);
setTimeZone(TimeZone.getDefault()); } else { setTimeZone(timeZone);
setEndTime(endTime); setTimeZone(TimeZone.getDefault());
setEndTime(endTime); setTimeZone(TimeZone.getDefault());
cti.setStartTime(this.startTime); cti.setCronExpression(this.cronExpression); cti.setTimeZone(this.timeZone); cti.setCalendarName(this.calendarName); cti.setPriority(this.priority);
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but * will rather be invoked by a TriggerBuilder which this ScheduleBuilder is * given to. * * @see TriggerBuilder#withSchedule(ScheduleBuilder) */ @Override public MutableTrigger build() { CronTriggerImpl ct = new CronTriggerImpl(); ct.setCronExpression(cronExpression); ct.setTimeZone(cronExpression.getTimeZone()); ct.setMisfireInstruction(misfireInstruction); return ct; }
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but * will rather be invoked by a TriggerBuilder which this ScheduleBuilder is * given to. * * @see TriggerBuilder#withSchedule(ScheduleBuilder) */ @Override public MutableTrigger build() { CronTriggerImpl ct = new CronTriggerImpl(); ct.setCronExpression(cronExpression); ct.setTimeZone(cronExpression.getTimeZone()); ct.setMisfireInstruction(misfireInstruction); return ct; }
cti.setStartTime(this.startTime); cti.setCronExpression(this.cronExpression); cti.setTimeZone(this.timeZone); cti.setCalendarName(this.calendarName); cti.setPriority(this.priority);
public static OperableTrigger newTrigger(Map<String, Object> attrMap) throws ParseException { CronTriggerImpl result = new CronTriggerImpl(); result.setCronExpression((String) attrMap.get("cronExpression")); if(attrMap.containsKey("timeZone")) { result.setTimeZone(TimeZone.getTimeZone((String)attrMap.get("timeZone"))); } TriggerSupport.initializeTrigger(result, attrMap); return result; } }
public static OperableTrigger newTrigger(CompositeData cData) throws ParseException { CronTriggerImpl result = new CronTriggerImpl(); result.setCronExpression((String) cData.get("cronExpression")); if(cData.containsKey("timeZone")) { result.setTimeZone(TimeZone.getTimeZone((String)cData.get("timeZone"))); } TriggerSupport.initializeTrigger(result, cData); return result; }