Examples of CronTriggerImpl


Examples of org.quartz.impl.triggers.CronTriggerImpl

        TriggerSupport.initializeTrigger(result, cData);
        return result;
    }

    public static OperableTrigger newTrigger(Map<String, Object> attrMap) throws ParseException {
        CronTriggerImpl result = new CronTriggerImpl();
        result.setCronExpression((String) attrMap.get("cronExpression"));
        if(attrMap.containsKey("timeZone")) {
            result.setTimeZone(TimeZone.getTimeZone((String)attrMap.get("timeZone")));
        }
        TriggerSupport.initializeTrigger(result, attrMap);
        return result;
    }
View Full Code Here

Examples of org.quartz.impl.triggers.CronTriggerImpl

     * @see TriggerBuilder#withSchedule(ScheduleBuilder)
     */
    @Override
    public MutableTrigger build() {

        CronTriggerImpl ct = new CronTriggerImpl();

        ct.setCronExpression(cronExpression);
        ct.setTimeZone(cronExpression.getTimeZone());
        ct.setMisfireInstruction(misfireInstruction);

        return ct;
    }
View Full Code Here

Examples of org.quartz.impl.triggers.CronTriggerImpl

    }
    if (this.timeZone == null) {
      this.timeZone = TimeZone.getDefault();
    }

    CronTriggerImpl cti = new CronTriggerImpl();
    cti.setName(this.name);
    cti.setGroup(this.group);
    cti.setJobKey(this.jobDetail.getKey());
    cti.setJobDataMap(this.jobDataMap);
    cti.setStartTime(this.startTime);
    cti.setCronExpression(this.cronExpression);
    cti.setTimeZone(this.timeZone);
    cti.setCalendarName(this.calendarName);
    cti.setPriority(this.priority);
    cti.setMisfireInstruction(this.misfireInstruction);
    cti.setDescription(this.description);
    this.cronTrigger = cti;
  }
View Full Code Here

Examples of org.quartz.impl.triggers.CronTriggerImpl

        repositoryJob.getJobDataMap().put( TASK_QUEUE, repositoryScanningQueue );
        repositoryJob.getJobDataMap().put( TASK_REPOSITORY, repoConfig.getId() );

        try
        {
            CronTriggerImpl trigger =
                new CronTriggerImpl( REPOSITORY_JOB_TRIGGER + ":" + repoConfig.getId(), REPOSITORY_SCAN_GROUP,
                                     cronString );

            jobs.add( REPOSITORY_JOB + ":" + repoConfig.getId() );
            scheduler.scheduleJob( repositoryJob, trigger );
        }
View Full Code Here

Examples of org.quartz.impl.triggers.CronTriggerImpl

        if (cronExpression == null) {
            // Jobs added with no trigger must be durable
            jobDetail.setDurability(true);
            scheduler.getScheduler().addJob(jobDetail, true);
        } else {
            CronTriggerImpl cronTrigger = new CronTriggerImpl();
            cronTrigger.setName(getTriggerName(jobName));
            cronTrigger.setCronExpression(cronExpression);

            scheduler.getScheduler().scheduleJob(jobDetail, cronTrigger);
        }
    }
View Full Code Here

Examples of org.quartz.impl.triggers.CronTriggerImpl

        repositoryJob.getJobDataMap().put( TASK_QUEUE, repositoryScanningQueue );
        repositoryJob.getJobDataMap().put( TASK_REPOSITORY, repoConfig.getId() );

        try
        {
            CronTriggerImpl trigger =
                new CronTriggerImpl( REPOSITORY_JOB_TRIGGER + ":" + repoConfig.getId(), REPOSITORY_SCAN_GROUP,
                                     cronString );

            jobs.add( REPOSITORY_JOB + ":" + repoConfig.getId() );
            scheduler.scheduleJob( repositoryJob, trigger );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.