Package org.apache.openejb.quartz

Examples of org.apache.openejb.quartz.SimpleTrigger


        //Add a job type
        final JobDetail jd = JobBuilder.newJob(MyTestJob.class).withIdentity("job1", "group1").build();
        jd.getJobDataMap().put("MyJobKey", "MyJobValue");

        //Schedule my 'test' job to run now
        final SimpleTrigger trigger = TriggerBuilder.newTrigger()
                                                    .withIdentity("trigger1", "group1")
                                                    .forJob(jd)
                                                    .withSchedule(SimpleScheduleBuilder.simpleSchedule()
                                                                                       .withRepeatCount(0)
                                                                                       .withIntervalInSeconds(0))
View Full Code Here

TOP

Related Classes of org.apache.openejb.quartz.SimpleTrigger

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.