Examples of Job


Examples of org.pentaho.platform.api.scheduler2.Job

          throw new IllegalAccessException();
        }
      }
    }

    Job job = null;

    IJobTrigger jobTrigger = SchedulerResourceUtil.convertScheduleRequestToJobTrigger( scheduleRequest, scheduler );

    HashMap<String, Serializable> parameterMap = new HashMap<String, Serializable>();
    for ( JobScheduleParam param : scheduleRequest.getJobParameters() ) {
View Full Code Here

Examples of org.persvr.job.Job

    }
    log.debug(GlobalData.webInfLocation.toString());
    global.put("coreApp", global, new DefaultHandler());
    LocalJsonFileSource.setLocalJsonPath(webappRoot);

    Job upgrade = new Upgrade();
    upgrade.execute();
    log.info("Persevere v" + Persevere.getPersevereVersion() + " Started");
    if(startConsole){
      new Console().start();
    }
    config.getServletContext().setAttribute("testrunner", new TestRunner());
View Full Code Here

Examples of org.plugtree.training.model.Job

        //KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession);
    }
    @Test
    public void testExecution() {
        Person p1 = new Person(20);
        p1.setJob(new Job(2, 3000f));
        Person p2 = new Person(18);
        p2.setJob(new Job(0, 5000f));
        Person p3 = new Person(47);
        p3.setJob(new Job(10, 4500f));
        ksession.insert(p1);
        ksession.insert(p2);
        ksession.insert(p3);
        ksession.fireAllRules();
View Full Code Here

Examples of org.quartz.Job

    }

    @Override
    public Job newJob(TriggerFiredBundle bundle, Scheduler scheduler) throws SchedulerException
    {
        Job result = null;
        try
        {
            Class<? extends Job> jobClass = bundle.getJobDetail().getJobClass();
            result = BeanProvider.getContextualReference(jobClass);
            scheduler.getContext().put(jobClass.getName(), Boolean.TRUE);
View Full Code Here

Examples of org.springframework.batch.core.Job

      log.info("No jobRegistry defined, skipping registered jobs");
    }
    if (this.jobRegistry != null && StringUtils.hasText(this.jobName)) {
      for (String name : this.jobRegistry.getJobNames()) {
        if (StringUtils.hasText(this.jobName) && jobMatches(this.jobName, name)) {
          Job job = this.jobRegistry.getJob(name);
          executeJob(job, jobParameters);
        } else {
          log.debug("Skipped registered job: " + name);
        }
View Full Code Here

Examples of org.springframework.xd.dirt.core.Job

    String jobDeploymentPath = new JobDeploymentsPath().setJobName(jobName).setModuleLabel(jobLabel)
        .setModuleSequence(properties.getSequenceAsString()).setContainer(containerAttributes.getId()).build();

    Module module = null;
    Job job = DeploymentLoader.loadJob(client, jobName, jobFactory);
    if (job != null) {
      ModuleDescriptor moduleDescriptor = job.getJobModuleDescriptor();
      module = deployModule(moduleDescriptor, properties);

      try {
        // this indicates that the container has deployed the module
        client.create().creatingParentsIfNeeded().withMode(CreateMode.EPHEMERAL).forPath(jobDeploymentPath);
View Full Code Here

Examples of org.springframework.xd.dirt.stream.Job

    try {
      Stat definitionStat = client.checkExists().forPath(path);
      if (definitionStat != null) {
        byte[] data = zkConnection.getClient().getData().forPath(path);
        Map<String, String> map = ZooKeeperUtils.bytesToMap(data);
        Job job = new Job(new JobDefinition(id, map.get("definition")));

        Stat deployStat = client.checkExists().forPath(Paths.build(Paths.JOB_DEPLOYMENTS, id));
        if (deployStat != null) {
          job.setStartedAt(new Date(deployStat.getCtime()));
          job.setStatus(getDeploymentStatus(id));
          return job;
        }
      }
    }
    catch (Exception e) {
View Full Code Here

Examples of org.xnap.commons.io.Job

public class JobHelper {
 
  private final static Log logger = LogFactory.getLog(JobHelper.class);
 
  static void retryJob(final int jobID) {
    Job<?> ioJob = new Job() {
      public Object run(ProgressMonitor monitor) throws Exception
      {
        monitor.setTotalSteps(3);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
View Full Code Here

Examples of pku.cbi.abcgrid.master.Job

    {
        inputs.clear();
        String[] cmds = new String[commands.length];
        System.arraycopy(commands,0,cmds,0,commands.length);
        String[] tagged_commands = parseCommands(user,cmds);
        Job job = new Job(user,getServiceName(),getAppName(),tagged_commands, priority);
        for(TaskInput is:inputs)
        {
            job.addInputStream(is.getName(),is.getData());
        }
        return job;
    }
View Full Code Here

Examples of play.jobs.Job

  public static void saveEntityTriggerJob() {
    final City city = new City();
    city.name = "cityNameJobLater";
    city.save();

    p = new Job() {
      public void doJob() throws Exception {
        City mycity = City.findById(city.id);
        resultName = mycity.name;
      }
    }.afterRequest();
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.