Examples of scheduleJob()


Examples of dk.contix.eclipse.hudson.HudsonClient.scheduleJob()

        org.eclipse.core.runtime.jobs.Job sj = new org.eclipse.core.runtime.jobs.Job("Scheduling Hudson build") {
          protected IStatus run(IProgressMonitor monitor) {
            final HudsonClient hudsonClient = new HudsonClient();
            try {
              hudsonClient.scheduleJob(j.getName());
            } catch (IOException e1) {
              return new Status(Status.ERROR, Activator.PLUGIN_ID, 0, "Unable to schedule job", e1);
            } catch (ParametersRequiredException e) {
              Display.getDefault().syncExec(new Runnable() {
                public void run() {
View Full Code Here

Examples of it.eng.spagobi.services.scheduler.service.SchedulerServiceImpl.scheduleJob()

      return res;
    }

    public java.lang.String scheduleJob(java.lang.String in0, java.lang.String in1, java.lang.String in2) throws java.rmi.RemoteException {
      SchedulerServiceImpl service = new SchedulerServiceImpl();
      String res = service.scheduleJob(in0,in1,in2);
      return res;
    }

    public java.lang.String getJobSchedulationDefinition(java.lang.String in0, java.lang.String in1, java.lang.String in2, java.lang.String in3) throws java.rmi.RemoteException {
      SchedulerServiceImpl service = new SchedulerServiceImpl();
View Full Code Here

Examples of it.eng.spagobi.services.scheduler.service.SchedulerServiceSupplier.scheduleJob()

      String jobGroupName = (String)request.getAttribute("jobGroupName");
      getSchedule(request, response);
      TriggerInfo tInfo = (TriggerInfo)sessCont.getAttribute(SpagoBIConstants.TRIGGER_INFO);
      StringBuffer message = createMessageSaveSchedulation(tInfo, true,profile);
      // call the web service to create the schedule
      String resp = schedulerService.scheduleJob(message.toString());
      SourceBean schedModRespSB = SchedulerUtilities.getSBFromWebServiceResponse(resp);
      if(schedModRespSB!=null) {
        String outcome = (String)schedModRespSB.getAttribute("outcome");
        if(outcome.equalsIgnoreCase("fault"))
          throw new Exception("Immediate Trigger not created by the web service");
View Full Code Here

Examples of org.apache.ambari.server.scheduler.ExecutionScheduleManager.scheduleJob()

    expect(jobDetail.getKey()).andReturn(JobKey.jobKey("testJob", "testGroup"));
    expect(jobDataMap.getWrappedMap()).andReturn(properties);
    expect(jobDataMap.getString((String) anyObject())).andReturn("testJob").anyTimes();

    Capture<Trigger> triggerCapture = new Capture<Trigger>();
    scheduleManagerMock.scheduleJob(capture(triggerCapture));
    expectLastCall().once();

    replay(scheduleManagerMock, executionContext, jobDataMap, jobDetail);

    batchRequestJobMock.execute(executionContext);
View Full Code Here

Examples of org.apache.openejb.quartz.Scheduler.scheduleJob()

            final Job job = (Job) endpoint;

            final JobDataMap jobDataMap = spec.getDetail().getJobDataMap();
            jobDataMap.put(Data.class.getName(), new Data(job));

            s.scheduleJob(spec.getDetail(), spec.getTrigger());
        } catch (final SchedulerException e) {
            throw new ResourceException("Failed to schedule job", e);
        }
    }
View Full Code Here

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

        SessionConfiguration config = new SessionConfiguration();
        config.setClockType(ClockType.REALTIME_CLOCK);
        TimerService timeService = TimerServiceFactory.getTimerService( config );
        Trigger trigger = new DelayedTrigger( 100 );
        HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);
        timeService.scheduleJob( new HelloWorldJob(), ctx,  trigger);
        Thread.sleep( 500 );
        timeService.shutdown();
        assertEquals( 1, ctx.getList().size() );
    }
   
View Full Code Here

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

        SessionConfiguration config = new SessionConfiguration();
        config.setClockType(ClockType.REALTIME_CLOCK);
        TimerService timeService = TimerServiceFactory.getTimerService( config );
        Trigger trigger = new DelayedTriggernew long[] { 100, 100, 100} );
        HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);
        timeService.scheduleJob( new HelloWorldJob(), ctx,  trigger);
        Thread.sleep( 500 );
        timeService.shutdown();
        assertEquals( 3, ctx.getList().size() );
    }
       
View Full Code Here

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

        config.setClockType(ClockType.REALTIME_CLOCK);
        TimerService timeService = TimerServiceFactory.getTimerService( config );
        Trigger trigger = new DelayedTriggernew long[] {100, 100, 100, 100, 100, 100, 100, 100} );
        HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);
        ctx.setLimit( 3 );
        timeService.scheduleJob( new HelloWorldJob(), ctx,  trigger);
        Thread.sleep( 1000 );
        timeService.shutdown();
        assertEquals( 5, ctx.getList().size() );
    }
View Full Code Here

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

            long effectiveEnd = ((EventFactHandle) factHandle).getEndTimestamp() + this.expirationOffset;
            long nextTimestamp = Math.max( clock.getCurrentTime(),
                                           effectiveEnd >= 0 ? effectiveEnd : Long.MAX_VALUE );
            JobContext jobctx = new ExpireJobContext( expire,
                                                      workingMemory );
            JobHandle handle = clock.scheduleJob( job,
                                                  jobctx,
                                                  new PointInTimeTrigger( nextTimestamp,
                                                                          null,
                                                                          null ) );
            jobctx.setJobHandle( handle );
View Full Code Here

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

            TimerService clock = inCtx.wm.getTimerService();

            JobContext jobctx = new ExpireJobContext( new WorkingMemoryReteExpireAction( factHandle, otn ),
                                                      inCtx.wm );
            JobHandle handle = clock.scheduleJob( job,
                                                  jobctx,
                                                  new PointInTimeTrigger( nextTimeStamp,
                                                                          null,
                                                                          null ) );
            jobctx.setJobHandle( handle );
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.