Package org.quartz

Examples of org.quartz.Scheduler.deleteJob()


            if ((job = sched.getJobDetail("ReindexJournalCleanupJob", "dotcms_jobs")) == null) {
              job = new JobDetail("ReindexJournalCleanupJob", "dotcms_jobs", DistReindexJournalCleanupThread.class);
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("ReindexJournalCleanupJob", "dotcms_jobs");
            job = new JobDetail("ReindexJournalCleanupJob", "dotcms_jobs", DistReindexJournalCleanupThread.class);
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
            trigger = new CronTrigger("trigger13", "group13", "ReindexJournalCleanupJob", "dotcms_jobs", calendar.getTime(), null,Config.getStringProperty("DIST_REINDEX_JOURNAL_CLEANUP_CRON_EXPRESSION"));
View Full Code Here


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

      if(UtilMethods.isSet(Config.getStringProperty("DIST_REINDEX_JOURNAL_CLEANUP_2_CRON_EXPRESSION"))) {
        try {
View Full Code Here

            if ((job = sched.getJobDetail("ReindexJournalCleanupJob2", "dotcms_jobs")) == null) {
              job = new JobDetail("ReindexJournalCleanupJob2", "dotcms_jobs", DistReindexJournalCleanupThread2.class);
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("ReindexJournalCleanupJob2", "dotcms_jobs");
            job = new JobDetail("ReindexJournalCleanupJob2", "dotcms_jobs", DistReindexJournalCleanupThread2.class);
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
            trigger = new CronTrigger("trigger14", "group14", "ReindexJournalCleanupJob2", "dotcms_jobs", calendar.getTime(), null,Config.getStringProperty("DIST_REINDEX_JOURNAL_CLEANUP_2_CRON_EXPRESSION"));
View Full Code Here

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

      if(UtilMethods.isSet(Config.getStringProperty("DASHBOARD_POPULATE_TABLES_CRON_EXPRESSION"))) {
        try {
View Full Code Here

            if ((job = sched.getJobDetail("DashboardJobImpl", "dotcms_jobs")) == null) {
              job = new JobDetail("DashboardJobImpl", "dotcms_jobs", DashboardProxy.getDashboardJobImplClass());
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("DashboardJobImpl", "dotcms_jobs");
            job = new JobDetail("DashboardJobImpl", "dotcms_jobs", DashboardProxy.getDashboardJobImplClass());
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
            trigger = new CronTrigger("trigger15", "group15", "DashboardJobImpl", "dotcms_jobs", calendar.getTime(), null,Config.getStringProperty("DASHBOARD_POPULATE_TABLES_CRON_EXPRESSION"));
View Full Code Here

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

      if(UtilMethods.isSet(Config.getStringProperty("CLEAN_BLOCK_CACHE_JOB_CRON_EXPRESSION"))) {
        try {
View Full Code Here

            if ((job = sched.getJobDetail("CleanBlockCacheScheduledTask", "dotcms_jobs")) == null) {
              job = new JobDetail("CleanBlockCacheScheduledTask", "dotcms_jobs", CleanBlockCacheScheduledTask.class);
              isNew = true;
            }
          } catch (SchedulerException se) {
            sched.deleteJob("CleanBlockCacheScheduledTask", "dotcms_jobs");
            job = new JobDetail("CleanBlockCacheScheduledTask", "dotcms_jobs", CleanBlockCacheScheduledTask.class);
            isNew = true;
          }
          calendar = GregorianCalendar.getInstance();
            trigger = new CronTrigger("trigger16", "group16", "CleanBlockCacheScheduledTask", "dotcms_jobs", calendar.getTime(), null, Config.getStringProperty("CLEAN_BLOCK_CACHE_JOB_CRON_EXPRESSION"));
View Full Code Here

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


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

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

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

      if(Config.getBooleanProperty("ENABLE_DELETE_OLDER_CLICKSTREAMS", false)){
        try {
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.