Examples of JobKey


Examples of org.quartz.JobKey

        return false;
    }

    @Override
    public void disableJob(long jobId) {
        JobKey jobKey = QzerverKeyUtils.jobKey(jobId);

        List<? extends Trigger> triggers;
        try {
            triggers = scheduler.getTriggersOfJob(jobKey);
        } catch (SchedulerException e) {
View Full Code Here

Examples of org.quartz.JobKey

        CronScheduleBuilder scheduleBuilder = CronScheduleBuilder.cronSchedule(cron)
            .withMisfireHandlingInstructionDoNothing()
            .inTimeZone(timeZone);

        JobKey jobKey = QzerverKeyUtils.jobKey(jobId);
        TriggerKey triggerKey = QzerverKeyUtils.triggerKey(jobId);

        return TriggerBuilder.newTrigger()
            .forJob(jobKey)
            .withIdentity(triggerKey)
View Full Code Here

Examples of org.quartz.JobKey

        try {
            jobInstanceLoader.registerJob(report);

            scheduler.getScheduler().triggerJob(
                    new JobKey(JobInstanceLoader.getJobName(report), Scheduler.DEFAULT_GROUP));
        } catch (Exception e) {
            LOG.error("While executing report {}", report, e);

            SyncopeClientCompositeErrorException scce =
                    new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);
View Full Code Here

Examples of org.quartz.JobKey

                    JobDataMap map = new JobDataMap();
                    map.put(AbstractTaskJob.DRY_RUN_JOBDETAIL_KEY, dryRun);

                    scheduler.getScheduler().triggerJob(
                            new JobKey(JobInstanceLoader.getJobName(task), Scheduler.DEFAULT_GROUP), map);
                } catch (Exception e) {
                    LOG.error("While executing task {}", task, e);

                    SyncopeClientCompositeErrorException scce = new SyncopeClientCompositeErrorException(
                            HttpStatus.BAD_REQUEST);
View Full Code Here

Examples of org.quartz.JobKey

    return new DefaultJobProvider().getJobWrapper(options);

  }

  public void unschedule(String id) {
    JobKey jobKey = new JobKey(id);
    try {
      if (quartz.checkExists(jobKey)) {
        quartz.deleteJob(jobKey);
      }
    } catch (SchedulerException e) {
View Full Code Here

Examples of org.quartz.JobKey

      throw new RuntimeException(e);
    }
  }

  private boolean alreadyExists(String id) throws SchedulerException {
    return quartz.checkExists(new JobKey(id));
  }
View Full Code Here

Examples of org.quartz.JobKey

  private @Inject Scheduler quartz;
  private @Inject TaskScheduler scheduler;
  private @Inject TriggerBuilder builder;
 
  private JobKey getKey(String taskId){
    return new JobKey(taskId);
  }
View Full Code Here

Examples of org.quartz.JobKey

    triggerIntervalTypes.add("Monat");
    triggerIntervalTypes.add("Jahr");
  }

  public void preRender() throws SchedulerException {
    JobDetail job = scheduler.getJobDetail(new JobKey(jobName, jobGroup));

    if (selectedJob == null
        || (selectedJob != null && !selectedJob.equals(job))) {
      setSelectedJob(job);
    }
View Full Code Here

Examples of org.quartz.JobKey

    triggerIntervalTypes.add("Monat");
    triggerIntervalTypes.add("Jahr");
  }

  public void preRender() throws SchedulerException {
    JobDetail job = scheduler.getJobDetail(new JobKey(jobName, jobGroup));

    if (selectedJob == null
        || (selectedJob != null && !selectedJob.equals(job))) {
      setSelectedJob(job);
    }
View Full Code Here

Examples of org.quartz.JobKey

    boolean markCompleted = false;

    if (firstBatchRequest != null) {
      String jobName = getJobName(executionId, firstBatchRequest.getOrderId());
      JobKey jobKey = JobKey.jobKey(jobName, ExecutionJob.LINEAR_EXECUTION_JOB_GROUP);
      JobDetail jobDetail;
      try {
        jobDetail = executionScheduler.getJobDetail(jobKey);
      } catch (SchedulerException e) {
        LOG.warn("Unable to retrieve job details from scheduler. job: " + jobKey);
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.