agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/queue/factory/AbstractJobProducerFactory.java
/**
     * Creates a new job on the consumer queue with a unique name based on the job uuid,
     * thus guaranteeing single execution within a JVM. If clustered, this should ensure 
     * single execution across the cluster.
     * 
     * @param jobClass the class of the {@link Job} to run
     * @param groupName phase name
     * @param jobUuid the Agave job UUID to be run by the Quartz {@link Job}
     * @param sched the current scheduler
     * @throws SchedulerException
     */
Creates a new job on the consumer queue with a unique name based on the job uuid,
thus guaranteeing single execution within a JVM. If clustered, this should ensure
single execution across the cluster.


Creates a new job on the consumer queue with a unique name based on the job uuid thus guaranteeing single execution within a JVM . If clustered this should ensure single execution across the cluster .
protected void produceWorker(Class<? extends WorkerWatch> jobClass, String groupName, String jobUuid, Scheduler sched) 
    throws SchedulerException 
    {
        JobDetail jobDetail = org.quartz.JobBuilder.newJob(jobClass)
            .usingJobData("uuid", jobUuid)
            .withIdentity(jobUuid, groupName + "Workers")
            .storeDurably(false)
            .build();
        SimpleTrigger trigger = (SimpleTrigger)newTrigger()
                            .withIdentity(jobUuid, groupName + "Workers")
                            .startNow()
                            .build();
         sched.scheduleJob(jobDetail, trigger);
    }
protected void produceWorker ( Class < ? extends WorkerWatch > jobClass , String groupName , String jobUuid , Scheduler sched ) throws SchedulerException { JobDetail jobDetail = org . quartz . JobBuilder . newJob ( jobClass ) . usingJobData ( "uuid" , jobUuid ) . withIdentity ( jobUuid , groupName + "Workers" ) . storeDurably ( false ) . build ( ) ; SimpleTrigger trigger = ( SimpleTrigger ) newTrigger ( ) . withIdentity ( jobUuid , groupName + "Workers" ) . startNow ( ) . build ( ) ; sched . scheduleJob ( jobDetail , trigger ) ; }
Creates a new job on the consumer queue with a unique name based on the job uuid,
 thus guaranteeing single execution within a JVM.
Creates a new job on the consumer queue with a unique name based on the job uuid thus guaranteeing single execution within a JVM .