/** * Produce the <code>JobDetail</code> instance defined by this <code>JobBuilder</code>. * * @return the defined JobDetail. */ public JobDetail build() { JobDetailImpl job = new JobDetailImpl(); job.setJobClass(jobClass); job.setDescription(description); if (key == null) { key = UUID.randomUUID().toString(); } job.setName(key); job.setIsConcurrencyAllowed(isConcurrencyAllowed); if (!jobDataMap.isEmpty()) { job.setJobDataMap(jobDataMap); } return job; }
@Override public String toString() { return "name: '" + getName() + "', Job Class: " + ((getJobClass() == null) ? null : getJobClass().getName()) + ", description: " + getDescription() + " isConcurrencyAllowed: " + isConcurrencyAllowed() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())); }
@Override public int hashCode() { return getName().hashCode(); }
@Override public int hashCode() { return getName().hashCode(); }
@Override public String toString() { return "name: '" + getName() + "', Job Class: " + ((getJobClass() == null) ? null : getJobClass().getName()) + ", description: " + getDescription() + " isConcurrencyAllowed: " + isConcurrencyAllowed() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())); }
/** * Produce the <code>JobDetail</code> instance defined by this <code>JobBuilder</code>. * * @return the defined JobDetail. */ public JobDetail build() { JobDetailImpl job = new JobDetailImpl(); job.setJobClass(jobClass); job.setDescription(description); if (key == null) { key = UUID.randomUUID().toString(); } job.setName(key); job.setIsConcurrencyAllowed(isConcurrencyAllowed); if (!jobDataMap.isEmpty()) { job.setJobDataMap(jobDataMap); } return job; }
@Override public int hashCode() { return getName().hashCode(); }
@Override public String toString() { return "name: '" + getName() + "', Job Class: " + ((getJobClass() == null) ? null : getJobClass().getName()) + ", description: " + getDescription() + " isConcurrencyAllowed: " + isConcurrencyAllowed() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())); }
/** * Produce the <code>JobDetail</code> instance defined by this <code>JobBuilder</code>. * * @return the defined JobDetail. */ public JobDetail build() { JobDetailImpl job = new JobDetailImpl(); job.setJobClass(jobClass); job.setDescription(description); if (key == null) { key = UUID.randomUUID().toString(); } job.setName(key); job.setIsConcurrencyAllowed(isConcurrencyAllowed); if (!jobDataMap.isEmpty()) { job.setJobDataMap(jobDataMap); } return job; }
@Override public JobBuilder getJobBuilder() { JobBuilder b = JobBuilder.newJobBuilder().ofType(getJobClass()).isConcurrencyAllowed(isConcurrencyAllowed()).usingJobData(getJobDataMap()) .withDescription(getDescription()).withIdentity(getName()); return b; }
@Override public JobBuilder getJobBuilder() { JobBuilder b = JobBuilder.newJobBuilder() .ofType(getJobClass()) .isConcurrencyAllowed(isConcurrencyAllowed()) .usingJobData(getJobDataMap()) .withDescription(getDescription()) .withIdentity(getName()); return b; } }
@Override public JobBuilder getJobBuilder() { JobBuilder b = JobBuilder.newJobBuilder().ofType(getJobClass()).isConcurrencyAllowed(isConcurrencyAllowed()).usingJobData(getJobDataMap()) .withDescription(getDescription()).withIdentity(getName()); return b; }