Examples of schedule()


Examples of org.apache.lenya.cms.usecase.scheduling.UsecaseScheduler.schedule()

            DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            UsecaseScheduler scheduler = null;
            try {
                Date date = format.parse(dateString);
                scheduler = (UsecaseScheduler) this.manager.lookup(UsecaseScheduler.ROLE);
                scheduler.schedule(this, date);
            } catch (ParseException e) {
                addErrorMessage("scheduler-date-format-invalid");
            } finally {
                if (scheduler != null) {
                    this.manager.release(scheduler);
View Full Code Here

Examples of org.apache.log4j.component.scheduler.Scheduler.schedule()

   

      if (repository instanceof LoggerRepositoryEx) {
        Scheduler scheduler = ((LoggerRepositoryEx) repository).getScheduler();

        scheduler.schedule(
          customReceiverJob, System.currentTimeMillis() + 500, refreshMillis);
      }

    }
View Full Code Here

Examples of org.apache.log4j.scheduler.Scheduler.schedule()

      "DBAppender cannot function without a reference to its owning repository");
    }

    Scheduler scheduler = this.repository.getScheduler();
   
    scheduler.schedule(
        receiverJob, System.currentTimeMillis() + 500, refreshMillis);
  
  }

  public void setRefreshMillis(int refreshMillis) {
View Full Code Here

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

                if ( this.logger.isDebugEnabled() ) {
                    this.logger.debug("Adding timed event " + config.get(JOB_TOPIC) + "(" + scheduleInfo.jobId + ")" + " with date " + scheduleInfo.date);
                }
                options = localScheduler.AT(scheduleInfo.date);
            }
            localScheduler.schedule(this, options.canRunConcurrently(false).name(scheduleInfo.jobId).config(config));
            this.startedSchedulerJobs.add(scheduleInfo.jobId);
            return true;
        } else {
            this.logger.error("No scheduler available to start timed event " + event);
        }
View Full Code Here

Examples of org.apache.wicket.request.RequestHandlerStack.schedule()

    final IRequestHandler handler3 = new IRequestHandler()
    {
      public void respond(IRequestCycle requestCycle)
      {
        testFlag3 = false;
        stack.schedule(handler4);

        // make sure that handler4's respond method is fired after this
        // one ends
        testFlag4 = false;
View Full Code Here

Examples of org.apache.ws.util.timer.TimerManagerImpl.schedule()

        //scale and translate the random to get a number between 1 and 3 mins
        double doubleLength = m_random.nextDouble() * 120000.0 + 60000.0;
        //long doubleLength = 20000; //for debug only...
        long lengthOfTime = (long) doubleLength;
        TimerManager tm = new TimerManagerImpl();
        m_timer = tm.schedule(this, lengthOfTime);
    }

    public void timerExpired(Timer timer)
    {

View Full Code Here

Examples of org.atmosphere.cpr.Meteor.schedule()

        // Grap a Meteor
        Meteor meteor = Meteor.build(req);

        // Start scheduling update.
        if (!scheduleStarted.getAndSet(true)) {
            meteor.schedule(new Callable<String>() {
                public String call() {
                    String s = new Date().toString();
                    return s;
                }
            }, 1); // One second
View Full Code Here

Examples of org.bndtools.core.resolve.ResolveJob.schedule()

                }
            });

            // Start job
            job.setUser(true);
            job.schedule();
        } else {
            // Not auto-resolving, just save
            reallySave(monitor);
        }
    }
View Full Code Here

Examples of org.camunda.bpm.container.ExecutorService.schedule()

    final ExecutorService executorService = runtimeContainerDelegate.getExecutorService();
   
    Runnable executeJobsRunnable = executorService.getExecuteJobsRunnable(jobIds, processEngine);
   
    // delegate job execution to runtime container
    if(!executorService.schedule(executeJobsRunnable, false)) {
     
      // TODO: if the execution is rejected by the runtime container, execute the rejected jobs handler

      // run in caller thread
      executeJobsRunnable.run();
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.JobManager.schedule()

        jobManager.send(createTweetMessage("message-one"));
        jobManager.send(createTweetMessage("message-two"));
        jobManager.send(createTweetMessage("message-three"));
        jobManager.send(createTweetMessage("message-four"));

        jobManager.schedule(createTweetTimer("timer-one", new Date()));
        jobManager.schedule(createTweetTimer("timer-two", new Date()));
        return null;
      }
    });
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.