Examples of schedule()


Examples of mx4j.timer.TimeQueue.schedule()

         {
            sleep(sleep);
         }
      };

      queue.schedule(task);

      // Wait for the task to be executed
      sleep(1000);

      // Stop the queue. This will cause the task above to interrupt,
View Full Code Here

Examples of net.citizensnpcs.waypoints.WaypointPath.schedule()

                break;
            case 1:
                // TODO: merge the default and this case.
                if (waypoints.currentIndex() >= 1) {
                    if (!waypoints.isStarted()) {
                        waypoints.schedule(npc, 0);
                    }
                    if (waypoints.isStarted() && !npc.isPaused() && npc.getHandle().pathFinished()) {
                        waypoints.setIndex(0);
                    }
                } else {
View Full Code Here

Examples of net.jmesnil.jmx.core.DisconnectJob.schedule()

    if( connection != null ) {
      final IConnectionWrapper[] wrapper = connection;
      DisconnectJob dj = new DisconnectJob(wrapper);
      DeleteConnectionJob deleteJob = new DeleteConnectionJob(wrapper);
      dj.setNextJob(deleteJob);
      dj.schedule();
    }
  }
}
View Full Code Here

Examples of org.activiti.engine.impl.persistence.entity.JobEntityManager.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-one", new Date()));
        jobManager.schedule(createTweetTimer("timer-two", new Date()));
        return null;
      }
    });
View Full Code Here

Examples of org.activiti.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-one", new Date()));
        jobManager.schedule(createTweetTimer("timer-two", new Date()));
        return null;
      }
    });
View Full Code Here

Examples of org.apache.activemq.broker.scheduler.JobScheduler.schedule()

        js.startDispatching();
        int count = 0;
        long startTime = 10 * 60 * 1000;
        long period = startTime;
        for (ByteSequence job : list) {
            js.schedule("id:" + (count++), job, "", startTime, period, -1);
        }

        List<Job> test = js.getAllJobs();
        LOG.debug("Found {} jobs in the store before restart", test.size());
        assertEquals(list.size(), test.size());
View Full Code Here

Examples of org.apache.airavata.core.gfac.scheduler.Scheduler.schedule()

        /*
         * Determine provider
         */
        Scheduler scheduler = getScheduler(context);
        context.getExecutionContext().getNotifier().startSchedule(context);
        Provider provider = scheduler.schedule(context);
        context.getExecutionContext().getNotifier().finishSchedule(context);

        log.debug("After scheduling, try to run data chain");

        /*
 
View Full Code Here

Examples of org.apache.airavata.core.gfac.scheduler.impl.SchedulerImpl.schedule()

      // parameter
      ct.setInput(input);
      ct.setOutput(output);
            ct.getExecutionContext().setRegistryService(jcrRegistry);
            Scheduler scheduler = new SchedulerImpl();
            Provider provider = scheduler.schedule(ct);


              if(provider instanceof GramProvider){
                junit.framework.Assert.assertTrue(true);
            }else {
View Full Code Here

Examples of org.apache.airavata.gfac.core.scheduler.HostScheduler.schedule()

    List<ComputeResourceDescription> computeHostList = Arrays.asList(deploymentMap.keySet().toArray(new ComputeResourceDescription[]{}))
    Class<? extends HostScheduler> aClass = Class.forName(
        ServerSettings.getHostScheduler()).asSubclass(
        HostScheduler.class);
    HostScheduler hostScheduler = aClass.newInstance();
    ComputeResourceDescription ComputeResourceDescription = hostScheduler.schedule(computeHostList);
    ApplicationDeploymentDescription applicationDeploymentDescription = deploymentMap.get(ComputeResourceDescription);
    return applicationDeploymentDescription;
  }

  private String getModuleId(AppCatalog appCatalog, String applicationId)
View Full Code Here

Examples of org.apache.airavata.gfac.scheduler.HostScheduler.schedule()

                for (String hostDescName : applicationDescriptors.keySet()) {
                    registeredHosts.add(airavataAPI.getApplicationManager().getHostDescription(hostDescName));
                }
                Class<? extends HostScheduler> aClass = Class.forName(ServerSettings.getHostScheduler()).asSubclass(HostScheduler.class);
                HostScheduler hostScheduler = aClass.newInstance();
                registeredHost = hostScheduler.schedule(registeredHosts);
            } else {
                // if user specify a host, no matter what we pick that host for all the nodes, todo: allow users to specify node specific host
                registeredHost = airavataAPI.getApplicationManager().getHostDescription(hostName);
            }
            ApplicationDescription applicationDescription =
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.