/** * Retrieve the <code>{@link org.quartz.jobs.JobDetail}</code> for the given <code> * {@link org.quartz.jobs.Job}</code>. * * @return The desired <code>Job</code>, or null if there is no match. */ @Override public JobDetail retrieveJob(String jobKey) { synchronized (lock) { JobWrapper jw = jobsByKey.get(jobKey); return (jw != null) ? (JobDetail) jw.jobDetail.clone() : null; } }
/** * <p> * Retrieve the <code>{@link org.quartz.jobs.JobDetail}</code> for the given <code>{@link org.quartz.jobs.Job}</code>. * </p> * * @return The desired <code>Job</code>, or null if there is no match. */ @Override public JobDetail retrieveJob(String jobKey) { synchronized (lock) { JobWrapper jw = jobsByKey.get(jobKey); return (jw != null) ? (JobDetail) jw.jobDetail.clone() : null; } }
/** * <p> * Retrieve the <code>{@link org.quartz.jobs.JobDetail}</code> for the given <code>{@link org.quartz.jobs.Job}</code>. * </p> * * @return The desired <code>Job</code>, or null if there is no match. */ @Override public JobDetail retrieveJob(String jobKey) { synchronized (lock) { JobWrapper jw = jobsByKey.get(jobKey); return (jw != null) ? (JobDetail) jw.jobDetail.clone() : null; } }
public void storeJob(JobDetail newJob, boolean replaceExisting) throws ObjectAlreadyExistsException { JobWrapper jw = new JobWrapper((JobDetail) newJob.clone());
public void storeJob(JobDetail newJob, boolean replaceExisting) throws ObjectAlreadyExistsException { JobWrapper jw = new JobWrapper((JobDetail) newJob.clone());
throws ObjectAlreadyExistsException { JobWrapper jw = new JobWrapper((JobDetail) newJob.clone());