/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string, not null * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string, not null * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ). * <p> * Note that this method does not output the chronology or time-zone. * This can be confusing, as the equals and hashCode methods use both * chronology and time-zone. If two objects are not {@code equal} but have the * same {@code toString} then either the chronology or time-zone differs. * * @return ISO8601 time formatted string, not null */ @ToString public String toString() { return super.toString(); }
/** * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ). * <p> * Note that this method does not output the chronology or time-zone. * This can be confusing, as the equals and hashCode methods use both * chronology and time-zone. If two objects are not {@code equal} but have the * same {@code toString} then either the chronology or time-zone differs. * * @return ISO8601 time formatted string, not null */ @ToString public String toString() { return super.toString(); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string, not null * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Uses the specified formatter to convert this partial to a String. * * @param formatter the formatter to use, null means use <code>toString()</code>. * @return the formatted string, not null * @since 1.1 */ public String toString(DateTimeFormatter formatter) { if (formatter == null) { return toString(); } return formatter.print(this); }
/** * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ). * <p> * Note that this method does not output the chronology or time-zone. * This can be confusing, as the equals and hashCode methods use both * chronology and time-zone. If two objects are not {@code equal} but have the * same {@code toString} then either the chronology or time-zone differs. * * @return ISO8601 time formatted string, not null */ @ToString public String toString() { return super.toString(); }
/** * Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ). * <p> * Note that this method does not output the chronology or time-zone. * This can be confusing, as the equals and hashCode methods use both * chronology and time-zone. If two objects are not {@code equal} but have the * same {@code toString} then either the chronology or time-zone differs. * * @return ISO8601 time formatted string, not null */ @ToString public String toString() { return super.toString(); }
/** * helper function to create the timer * * @param instant the point in time when the code should be executed * @param closure string for job id * @param dataMap job data map, preconfigured with arguments * @return */ private static Timer makeTimer(AbstractInstant instant, String closure, JobDataMap dataMap) { Logger logger = LoggerFactory.getLogger(ScriptExecution.class); JobKey jobKey = new JobKey(instant.toString() + ": " + closure.toString()); Trigger trigger = newTrigger().startAt(instant.toDate()).build(); Timer timer = new TimerImpl(jobKey, trigger.getKey(), dataMap, instant); try { JobDetail job = newJob(TimerExecutionJob.class).withIdentity(jobKey).usingJobData(dataMap).build(); if (TimerImpl.scheduler.checkExists(job.getKey())) { TimerImpl.scheduler.deleteJob(job.getKey()); logger.debug("Deleted existing Job {}", job.getKey().toString()); } TimerImpl.scheduler.scheduleJob(job, trigger); logger.debug("Scheduled code for execution at {}", instant.toString()); return timer; } catch (SchedulerException e) { logger.error("Failed to schedule code for execution.", e); return null; } } }