Examples of unschedule()


Examples of org.apache.sling.commons.scheduler.Scheduler.unschedule()

    private void stopScheduling() {
        final Scheduler localScheduler = this.scheduler;
        if ( localScheduler != null ) {
            for(final String id : this.startedSchedulerJobs ) {
                localScheduler.unschedule(id);
            }
        }
        this.startedSchedulerJobs.clear();

        // stop background threads by putting empty objects into the queue
View Full Code Here

Examples of org.apache.sling.commons.scheduler.Scheduler.unschedule()

            if ( scheduleInfo.isStopEvent() ) {
                if ( this.logger.isDebugEnabled() ) {
                    this.logger.debug("Stopping timed event " + event.getProperty(EventUtil.PROPERTY_TIMED_EVENT_TOPIC) + "(" + scheduleInfo.jobId + ")");
                }
                this.startedSchedulerJobs.remove(scheduleInfo.jobId);
                localScheduler.unschedule(scheduleInfo.jobId);
                return true;
            }

            // Create configuration for scheduled job
            final Map<String, Serializable> config = new HashMap<String, Serializable>();
View Full Code Here

Examples of org.apache.sling.event.jobs.ScheduledJobInfo.unschedule()

            while ( counter.get() == 0 ) {
                this.sleep(1000);
            }
            assertEquals(0, this.getJobManager().getScheduledJobs().size()); // job is not scheduled anymore
            info.unschedule();
        } finally {
            ehReg.unregister();
        }
    }
View Full Code Here

Examples of org.exist.versioning.svn.internal.wc.admin.SVNEntry.unschedule()

            File baseSrc = srcArea.getBaseFile(src.getName(), false);
            File baseDst = dstArea.getBaseFile(dst.getName(), false);
            SVNFileUtil.copyFile(baseSrc, baseDst, false);

            if (dstEntry.isScheduledForDeletion()) {
                dstEntry.unschedule();
                dstEntry.scheduleForReplacement();               
            } else if (!dstEntry.isScheduledForReplacement()) {
                dstEntry.unschedule();
                dstEntry.scheduleForAddition();
            }
View Full Code Here

Examples of org.exist.versioning.svn.internal.wc.admin.SVNEntry.unschedule()

            if (dstEntry.isScheduledForDeletion()) {
                dstEntry.unschedule();
                dstEntry.scheduleForReplacement();               
            } else if (!dstEntry.isScheduledForReplacement()) {
                dstEntry.unschedule();
                dstEntry.scheduleForAddition();
            }

            dstArea.saveEntries(false);
            SVNLog log = dstArea.getLog();
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.impl.BackupScheduler.unschedule()

      }

      // play with incremental
      addContent(ws1TestRoot, 1, 20, 1);

      scheduler.unschedule(config);

      log.info("-----------------[ restore ]-------------------------");
      // restore
      restoreAndCheck("ws1back.incr5", "jdbcjcr6", bch.getLogFilePath(), backDir, 1, 20);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.impl.BackupScheduler.unschedule()

      }

      // play with incremental, each node will be added after 500ms
      addContent(ws1TestRoot, 1, 20, 1100); // 20 * 1100 = 220000 ms = 22sec

      scheduler.unschedule(config);

      log.info("-----------------[ restore ]-------------------------");
      // restore
      restoreAndCheck("ws1back.incr6", "jdbcjcr7", bch.getLogFilePath(), backDir, 1, 20);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.impl.BackupScheduler.unschedule()

      addContent(ws1TestRoot, 21, 40, 1);

      // Stop backup
      Thread.sleep(10000); // for last started chain
      scheduler.unschedule(config);

      log.info("-----------------[ restore #1 ]-------------------------");
      restoreAndCheck("ws1back.incr12", "jdbcjcr15", bch1.getLogFilePath(), backDir, 1, 20);

      log.info("-----------------[ restore #2 ]-------------------------");
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.impl.BackupScheduler.unschedule()

      addContent(ws1TestRoot, 21, 40, 15);

      // Stop backup
      Thread.sleep(10000); // for last started chain
      scheduler.unschedule(config);

      log.info("-----------------[ restore #1 ]-------------------------");
      restoreAndCheck("ws1back.incr14", "jdbcjcr17", bch1.getLogFilePath(), backDir, 1, 20);

      log.info("-----------------[ restore #2 ]-------------------------");
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.wc.admin.SVNEntry.unschedule()

            File baseSrc = srcArea.getBaseFile(src.getName(), false);
            File baseDst = dstArea.getBaseFile(dst.getName(), false);
            SVNFileUtil.copyFile(baseSrc, baseDst, false);

            if (dstEntry.isScheduledForDeletion()) {
                dstEntry.unschedule();
                dstEntry.scheduleForReplacement();               
            } else if (!dstEntry.isScheduledForReplacement()) {
                dstEntry.unschedule();
                dstEntry.scheduleForAddition();
            }
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.