Examples of Job


Examples of org.jwatch.domain.quartz.Job

            {
               continue;
            }

            CompositeDataSupport compositeDataSupport = (CompositeDataSupport) object;
            Job job = new Job();
            job.setQuartzInstanceId(scheduler.getQuartzInstanceUUID());
            job.setSchedulerInstanceId(scheduler.getInstanceId());
            job.setJobName((String) JMXUtil.convertToType(compositeDataSupport, "name"));
            job.setDescription((String) JMXUtil.convertToType(compositeDataSupport, "description"));
            job.setDurability(((Boolean) JMXUtil.convertToType(compositeDataSupport, "durability")).booleanValue());
            job.setShouldRecover(((Boolean) JMXUtil.convertToType(compositeDataSupport, "shouldRecover")).booleanValue());
            job.setGroup((String) JMXUtil.convertToType(compositeDataSupport, "group"));
            job.setJobClass((String) JMXUtil.convertToType(compositeDataSupport, "jobClass"));

            // get Next Fire Time for job
            List<Trigger> triggers = this.getTriggersForJob(quartzInstance, scheduleID, job.getJobName(), job.getGroup());
            try
            {
               if (triggers != null && triggers.size() > 0)
               {
                  Date nextFireTime = TriggerUtil.getNextFireTimeForJob(triggers);
                  job.setNextFireTime(nextFireTime);
                  job.setNumTriggers(triggers.size());
               }
            }
            catch (Throwable t)
            {
               log.error(t);
View Full Code Here

Examples of org.kapott.hbci.manager.ChallengeInfo.Job

   * @return die Challenge-Daten.
   */
  private HhdVersion getHhdVersion(String code, String version)
  {
    ChallengeInfo info = ChallengeInfo.getInstance();
    Job job = info.getData(code);
    return job != null ? job.getVersion(version) : null;
  }
View Full Code Here

Examples of org.netmelody.cieye.spies.jenkins.jsondomain.Job

       
        assertThat(target.status(), Matchers.is(Status.BROKEN));
    }
   
    private Job defaultJob() {
        final Job job = new Job();
        job.name = "jobName";
        job.url = "jobUrl";
        job.color = "blue";
        return job;
    }
View Full Code Here

Examples of org.ofbiz.service.job.Job

            throw new WfException("No job manager found on the service dispatcher; cannot start activity");
        }

        // using the StartActivityJob class to run the activity within its own thread
        try {
            Job activityJob = new StartActivityJob(activity, req);
            jm.runJob(activityJob);
        } catch (JobManagerException e) {
            throw new WfException("JobManager error", e);
        }
View Full Code Here

Examples of org.ogce.schemas.gfac.inca.faults.Job

import org.ogce.schemas.gfac.inca.faults.Job;

public class JobSubmissionFault extends GfacException{
    public JobSubmissionFault(Throwable cause,String submitHost, String contact,String rsl,CurrentProviders api) {
        super(cause,FaultCode.ErrorAtDependentService);
        Job job = Job.Factory.newInstance();
        job.setContact(contact);
        job.setRsl(rsl);
        job.setSubmitHost(submitHost);
        errorActionDocument = createFaultData(job, api.toString(), cause);
    }
View Full Code Here

Examples of org.opencastproject.job.api.Job

      post = new HttpPost("/" + ExecuteService.ENDPOINT_NAME);
      post.setEntity(new UrlEncodedFormEntity(formStringParams));
      response = getResponse(post);

      if (response != null) {
        Job job = JobParser.parseJob(response.getEntity().getContent());
        logger.info("Completing execution of command {} using a remote execute service", exec);
        return job;
      } else
        throw new ExecuteException(String.format("Failed to execute the command %s using a remote execute service", exec));
View Full Code Here

Examples of org.openpnp.model.Job

                updateJobActions();

                // Create an empty Job if one is not loaded
                if (JobPanel.this.jobProcessor.getJob() == null) {
                    Job job = new Job();
                    JobPanel.this.jobProcessor.load(job);
                }
            }
        });
  }
View Full Code Here

Examples of org.optaplanner.examples.dinnerparty.domain.Job

                guest.setCode(lineTokens[0]);
                guest.setName(lineTokens[1]);
                JobType jobType = JobType.valueOfCode(lineTokens[2]);
                String jobName = lineTokens[3];
                String jobMapKey = jobType + "/" + jobName;
                Job job = jobMap.get(jobMapKey);
                if (job == null) {
                    job = new Job();
                    job.setId((long) jobNextId);
                    jobNextId++;
                    job.setJobType(jobType);
                    job.setName(jobName);
                    jobMap.put(jobMapKey, job);
                }
                guest.setJob(job);
                guest.setGender(Gender.valueOfCode(lineTokens[4]));
                List<HobbyPractician> hobbyPracticianOfGuestList = new ArrayList<HobbyPractician>(lineTokens.length - 5);
View Full Code Here

Examples of org.optaplanner.examples.projectjobscheduling.domain.Job

                }
                allocationList.add(allocation);
                jobToAllocationMap.put(job, allocation);
            }
            for (Allocation allocation : allocationList) {
                Job job = allocation.getJob();
                allocation.setSourceAllocation(projectToSourceAllocationMap.get(job.getProject()));
                allocation.setSinkAllocation(projectToSinkAllocationMap.get(job.getProject()));
                for (Job successorJob : job.getSuccessorJobList()) {
                    Allocation successorAllocation = jobToAllocationMap.get(successorJob);
                    allocation.getSuccessorAllocationList().add(successorAllocation);
                    successorAllocation.getPredecessorAllocationList().add(allocation);
                }
            }
View Full Code Here

Examples of org.pentaho.di.job.Job

    KettleEnvironment.init();
   
    String jobfile = projectDir+"/test/org/typeexit/kettle/plugin/steps/ruby/files/tests/run_all_tests.kjb";
   
    JobMeta jobMeta = new JobMeta(jobfile, null, null);
    final Job job = new Job(null, jobMeta);
   
        job.initializeVariablesFrom(null);
        job.setLogLevel(LogLevel.MINIMAL);
        job.getJobMeta().setInternalKettleVariables(job);
        job.copyParametersFrom(job.getJobMeta());
    job.activateParameters();

    Thread jobRunner = new Thread(new Runnable(){

      @Override
      public void run() {
        job.start();
        job.waitUntilFinished();
        
      }
    });;
   
    // start the job and wait for it to finish
    jobRunner.start();
   
    // measure the time while waiting, anything beyond MAX_RUNTIME
    // indicates that the thing hangs
    long startTime = System.currentTimeMillis();
    final int MAX_RUNTIME = 120 * 1000;
   
    while(jobRunner.isAlive()){
     
      Thread.sleep(1000);
     
      if (System.currentTimeMillis() - startTime > MAX_RUNTIME){
        fail("all tests job seems to be hanging for "+(MAX_RUNTIME/1000)+" seconds");
      }
    }

    // make sure there's no errors when the job finishes
    Result result = job.getResult();
    assertEquals(0, result.getNrErrors());
   
  }
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.