Examples of deleteJob()


Examples of org.quartz.Scheduler.deleteJob()

            if ((job = sched.getJobDetail("UpdateRatingJob", "dotcms_jobs")) == null) {
              job = new JobDetail("UpdateRatingJob", "dotcms_jobs", UpdateRatingThread.class);
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("UpdateRatingJob", "dotcms_jobs");
            job = new JobDetail("UpdateRatingJob", "dotcms_jobs", UpdateRatingThread.class);
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
          calendar.add(Calendar.SECOND, Config.getIntProperty("UPDATE_RATINGS_THREAD_INIT_DELAY"));
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

        }
      } else {
            Logger.info(DotInitScheduler.class, "Update Rating Cron Thread schedule disabled on this server");
            Logger.info(DotInitScheduler.class, "Deleting UpdateRatingJob Job");
        if ((job = sched.getJobDetail("UpdateRatingJob", "dotcms_jobs")) != null) {
          sched.deleteJob("UpdateRatingJob", "dotcms_jobs");
        }
      }

      if(Config.getBooleanProperty("ENABLE_CONTENT_REVIEW_THREAD")) {
        try {
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

            if ((job = sched.getJobDetail("ContentReviewJob", "dotcms_jobs")) == null) {
              job = new JobDetail("ContentReviewJob", "dotcms_jobs", ContentReviewThread.class);
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("ContentReviewJob", "dotcms_jobs");
            job = new JobDetail("ContentReviewJob", "dotcms_jobs", ContentReviewThread.class);
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
          calendar.add(Calendar.SECOND, Config.getIntProperty("EXEC_INIT_DELAY"));
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

        }
      } else {
            Logger.info(DotInitScheduler.class, "Content Review Cron Thread schedule disabled on this server");
            Logger.info(DotInitScheduler.class, "Deleting ContentReviewJob Job");
        if ((job = sched.getJobDetail("ContentReviewJob", "dotcms_jobs")) != null) {
          sched.deleteJob("ContentReviewJob", "dotcms_jobs");
        }
      }


          try {
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

        }
      } else {
            Logger.info(DotInitScheduler.class, "Automatic Content Reindexation Cron Thread schedule disabled on this server");
            Logger.info(DotInitScheduler.class, "Deleting ContentReindexerJob Job");
        if ((job = sched.getJobDetail("ContentReindexerJob", "dotcms_jobs")) != null) {
          sched.deleteJob("ContentReindexerJob", "dotcms_jobs");
        }
      }

      //Bounces popper task
      if(Config.getBooleanProperty("ENABLE_POP_BOUNCES_THREAD")) {
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

            if ((job = sched.getJobDetail("PopBouncedMailJob", "dotcms_jobs")) == null) {
              job = new JobDetail("PopBouncedMailJob", "dotcms_jobs", PopBouncedMailThread.class);
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("PopBouncedMailJob", "dotcms_jobs");
            job = new JobDetail("PopBouncedMailJob", "dotcms_jobs", PopBouncedMailThread.class);
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
          calendar.add(Calendar.SECOND, Config.getIntProperty("EXEC_POP_BOUNCES_INIT_DELAY"));
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.deleteJob()

            BundleDeploymentStatus bundleDeploymentStatus = bundleManager.determineBundleDeploymentStatus(bundleDeployment.getId());
            if (bundleDeploymentStatus.isTerminal()) {
                // delete this job, we've assigned a final status
                try {
                    context.setResult(bundleDeploymentStatus); // Return status to possible listeners
                    scheduler.deleteJob(jobDetail.getName(), jobDetail.getGroup());
                } catch (SchedulerException e) {
                    throw new JobExecutionException("Could not delete the bundle deployment completion check job for "
                        + bundleDeployment + ".", e);
                }
            } else {
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.deleteJob()

     *
     * @throws SchedulerException if failed to unschedule the job
     */
    public void unscheduleProviderSyncJob(ContentSource contentSource) throws SchedulerException {
        SchedulerLocal scheduler = LookupUtil.getSchedulerBean();
        scheduler.deleteJob(ContentProviderSyncJob.createJobName(contentSource), CONTENT_SRC_SYNC_JOB_GROUP_NAME);
    }

    /**
     * This will unschedule the sync job for the given Repo.
     *
 
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.deleteJob()

     *
     * @throws SchedulerException if failed to unschedule the job
     */
    public void unscheduleRepoSyncJob(Repo repo) throws SchedulerException {
        SchedulerLocal scheduler = LookupUtil.getSchedulerBean();
        scheduler.deleteJob(RepoSyncJob.createJobName(repo), REPO_SYNC_JOB_GROUP_NAME);
    }

    protected ServerPluginManager createPluginManager() {
        return new ContentServerPluginManager(this);
    }
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.deleteJob()

            DataPurgeJob.purgeNow();

            // wait for the job to finish - abort the test if it takes too long
            assertTrue("Data purge job didn't complete in a timely fashion", latch.await(60, TimeUnit.SECONDS));
        } finally {
            schedulerBean.deleteJob(DataPurgeJob.class.getName(), DataPurgeJob.class.getName());
        }
    }

    private void triggerDataCalcJobNow() throws Exception {
        final CountDownLatch latch = new CountDownLatch(1);
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.