Package org.quartz.impl.jdbcjobstore.TriggerPersistenceDelegate

Examples of org.quartz.impl.jdbcjobstore.TriggerPersistenceDelegate.TriggerPropertyBundle


                    TriggerPersistenceDelegate tDel = findTriggerPersistenceDelegate(triggerType);
                   
                    if(tDel == null)
                        throw new JobPersistenceException("No TriggerPersistenceDelegate for trigger discriminator type: " + triggerType);

                    TriggerPropertyBundle triggerProps = null;
                    try {
                        triggerProps = tDel.loadExtendedTriggerProperties(conn, triggerKey);
                    } catch (IllegalStateException isex) {
                        if (isTriggerStillPresent(ps)) {
                            throw isex;
                        } else {
                            // QTZ-386 Trigger has been deleted
                            return null;
                        }
                    }

                    TriggerBuilder<?> tb = newTrigger()
                        .withDescription(description)
                        .withPriority(priority)
                        .startAt(startTimeD)
                        .endAt(endTimeD)
                        .withIdentity(triggerKey)
                        .modifiedByCalendar(calendarName)
                        .withSchedule(triggerProps.getScheduleBuilder())
                        .forJob(jobKey(jobName, jobGroup));
   
                    if (null != map) {
                        tb.usingJobData(new JobDataMap(map));
                    }
View Full Code Here

TOP

Related Classes of org.quartz.impl.jdbcjobstore.TriggerPersistenceDelegate.TriggerPropertyBundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.