Examples of removeJob()


Examples of ch.ethz.vs.rowa.job.ClientRequests.removeJob()

    synchronized (waitingJobList) {
      ClientRequests crequest = waitingJobList.get(uuid);
      //System.out.println("addwaitingjob -> "+crequest.getSizeOfJob());
      if(crequest.getSizeOfJob() > 0){
       
        job = crequest.removeJob();
        if(job != null){
          synchronized (jobList) {
            jobList.add(job);
            crequest.setRunning();
            jobList.notifyAll();
View Full Code Here

Examples of ch.ethz.vs.rowa.job.ClientRequests.removeJob()

    synchronized (waitingJobList) {
      ClientRequests crequest = waitingJobList.get(uuid);
      //System.out.println("addwaitingjob -> "+crequest.getSizeOfJob());
      if(crequest.getSizeOfJob() > 0){
       
        job = crequest.removeJob();
        if(job != null){
          synchronized (jobList) {
            jobList.add(job);
            crequest.setRunning();
            jobList.notifyAll();
View Full Code Here

Examples of org.apache.activemq.broker.jmx.JobSchedulerViewMBean.removeJob()

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        if (jobId != null) {
            JobSchedulerViewMBean jobScheduler = getBrokerFacade().getJobScheduler();
            if (jobScheduler != null) {
                jobScheduler.removeJob(jobId);
                LOG.info("Removed scheduled Job " + jobId);
            } else {
              LOG.warn("Scheduler not configured");
            }
        }
View Full Code Here

Examples of org.apache.activemq.broker.jmx.JobSchedulerViewMBean.removeJob()

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        if (jobId != null) {
            JobSchedulerViewMBean jobScheduler = getBrokerFacade().getJobScheduler();
            if (jobScheduler != null) {
                jobScheduler.removeJob(jobId);
                LOG.info("Removed scheduled Job " + jobId);
            } else {
              LOG.warn("Scheduler not configured");
            }
        }
View Full Code Here

Examples of org.apache.activemq.broker.jmx.JobSchedulerViewMBean.removeJob()

        TabularData jobs = view.getAllJobs();
        assertEquals(1, jobs.size());
        for (Object key : jobs.keySet()) {
            String jobId = ((List<?>)key).get(0).toString();
            LOG.info("Attempting to remove Job: {}", jobId);
            view.removeJob(jobId);
        }
        assertTrue(view.getAllJobs().isEmpty());
    }

    @Test
View Full Code Here

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

            if ( scheduleInfo.isStopEvent() ) {
                if ( this.logger.isDebugEnabled() ) {
                    this.logger.debug("Stopping timed event " + event.getProperty(EventUtil.PROPERTY_TIMED_EVENT_TOPIC) + "(" + scheduleInfo.jobId + ")");
                }
                try {
                    localScheduler.removeJob(scheduleInfo.jobId);
                } catch (NoSuchElementException nsee) {
                    // this can happen if the job is scheduled on another node
                    // so we can just ignore this
                }
                return true;
View Full Code Here

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

            if ( scheduleInfo.isStopEvent() ) {
                if ( this.logger.isDebugEnabled() ) {
                    this.logger.debug("Stopping timed event " + event.getProperty(EventUtil.PROPERTY_TIMED_EVENT_TOPIC) + "(" + scheduleInfo.jobId + ")");
                }
                try {
                    localScheduler.removeJob(scheduleInfo.jobId);
                } catch (NoSuchElementException nsee) {
                    // this can happen if the job is scheduled on another node
                    // so we can just ignore this
                }
                return true;
View Full Code Here

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

                this.logger.debug("Stopping timed event " + jobId);
            }
            final Scheduler localScheduler = this.scheduler;
            if ( localScheduler != null ) {
                try {
                    localScheduler.removeJob(jobId);
                } catch (NoSuchElementException nsee) {
                    // this can happen if the job is scheduled on another node
                    // so we can just ignore this
                }
            }
View Full Code Here

Examples of org.drools.core.time.TimerService.removeJob()

            DefaultJobHandle jobHandle = (DefaultJobHandle) leftTuple.getObject();
            LeftTupleList leftTuples = tm.getInsertOrUpdateLeftTuples();
            synchronized ( leftTuples ) {
                // the job removal and memory check is done within a sync block, incase it is executing a trigger at the
                // same time we are procesing an update
                timerService.removeJob( jobHandle );

                if ( leftTuple.getMemory() != null ) {
                    // a previous timer has requested an eval, so remove, we don't want it processed twice
                    leftTuples.remove( leftTuple );
                }
View Full Code Here

Examples of org.drools.core.time.TimerService.removeJob()

                LeftTuple next = leftTuple.getStagedNext();

                DefaultJobHandle jobHandle = (DefaultJobHandle) leftTuple.getObject();
                if ( jobHandle != null ) {
                    // jobHandle can be null, if the time fired straight away, and never ended up scheduling a job
                    timerService.removeJob( jobHandle );
                }

                org.drools.core.spi.PropagationContext pctx = leftTuple.getPropagationContext();
                pctx = RuleTerminalNode.findMostRecentPropagationContext( leftTuple, pctx );
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.