Examples of JobInfo


Examples of org.apache.uima.ducc.ws.JobInfo

    ConcurrentSkipListMap<JobInfo,JobInfo> sortedJobs = duccData.getSortedJobs();
    if(sortedJobs.size()> 0) {
      Iterator<Entry<JobInfo, JobInfo>> iterator = sortedJobs.entrySet().iterator();
      int counter = 0;
      while(iterator.hasNext()) {
        JobInfo jobInfo = iterator.next().getValue();
        DuccWorkJob job = jobInfo.getJob();
        boolean list = DuccWebUtil.isListable(request, users, maxRecords, counter, job);
        if(list) {
          counter++;
          JsonArray row = buildJobRow(request, job, duccData, now, servicesRegistry);
          data.add(row);
View Full Code Here

Examples of org.exoplatform.services.scheduler.JobInfo

      scheduler_.scheduleJob(job, trigger);
   }

   public void addJob(JobInfo jinfo, Trigger trigger) throws Exception
   {
      JobInfo jobinfo = getJobInfo(jinfo);
      JobDetail job = new JobDetail(jobinfo.getJobName(), jobinfo.getGroupName(), jobinfo.getJob());
      scheduler_.scheduleJob(job, trigger);
   }
View Full Code Here

Examples of org.ggf.drmaa.JobInfo

        
         System.out.println("Your job has been submitted with id " + id);
        
         session.deleteJobTemplate(jt);
        
         JobInfo info = session.wait(id, Session.TIMEOUT_WAIT_FOREVER);
        
         if (info.wasAborted()) {
            System.out.println("Job " + info.getJobId() + " never ran");
         } else if (info.hasExited()) {
            System.out.println("Job " + info.getJobId() +
                  " finished regularly with exit status " +
                  info.getExitStatus());
         } else if (info.hasSignaled()) {
            System.out.println("Job " + info.getJobId() +
                  " finished due to signal " +
                  info.getTerminatingSignal());
         } else {
            System.out.println("Job " + info.getJobId() +
                  " finished with unclear conditions");
         }
        
         System.out.println("Job Usage:");
        
         Map rmap = info.getResourceUsage();
         Iterator i = rmap.keySet().iterator();
        
         while (i.hasNext()) {
            String name = (String)i.next();
            String value = (String)rmap.get(name);
View Full Code Here

Examples of org.ggf.drmaa.JobInfo

       
        /* wait all those jobs */
        Iterator i = allJobIds.iterator();
       
        while (i.hasNext()) {
            JobInfo status = null;
            jobId = (String)i.next();
           
            status = session.wait(jobId, Session.TIMEOUT_WAIT_FOREVER);
           
            /* report how job finished */
            if (status.wasAborted()) {
                System.out.println("job \"" + jobId + "\" never ran");
            } else if (status.hasExited()) {
                System.out.println("job \"" + jobId + "\" finished regularly with exit status " + status.getExitStatus());
            } else if (status.hasSignaled()) {
                System.out.println("job \"" + jobId + "\" finished due to signal " + status.getTerminatingSignal());
            } else {
                System.out.println("job \"" + jobId + "\" finished with unclear conditions");
            }
        }
    }
View Full Code Here

Examples of org.glassfish.api.admin.progress.JobInfo

        List<JobInfo> jobInfoList = new ArrayList<JobInfo>();

        if (jobID != null) {
            Job oneJob = jobManagerService.get(jobID);
            JobInfo info = null;

            if (oneJob != null) {
                List<String> userList =  SubjectUtil.getUsernamesFromSubject(oneJob.getSubject());
                String message = oneJob.getActionReport() == null ? "" : oneJob.getActionReport().getMessage();
                info = new JobInfo(oneJob.getId(),oneJob.getName(),oneJob.getCommandExecutionDate(),oneJob.getState().name(),"admin",message);

            else {
                if (jobManagerService.getCompletedJobs() != null) {
                    info = (JobInfo) jobManagerService.getCompletedJobForId(jobID);
                }
            }

          if (info != null && !skipJob(info.jobName)) {
              jobInfoList.add(info);
          }

        }  else {

            for (Iterator<Job> iterator = jobManagerService.getJobs(); iterator.hasNext(); ) {
                Job job = iterator.next();
                if (!skipJob(job.getName())) {
                    List<String> userList =  SubjectUtil.getUsernamesFromSubject(job.getSubject());
                    String message = job.getActionReport() == null ? "" : job.getActionReport().getMessage();
                    jobInfoList.add(new JobInfo(job.getId(),job.getName(),job.getCommandExecutionDate(),job.getState().name(),userList.get(0),message));
                }
            }

            JobInfos completedJobs = jobManagerService.getCompletedJobs();
            if (completedJobs != null ) {
View Full Code Here

Examples of org.springframework.batch.admin.web.JobInfo

      catch (NoSuchJobException e) {
        // shouldn't happen
      }
      boolean launchable = jobService.isLaunchable(name);
      boolean incrementable = jobService.isIncrementable(name);
      result.add(new JobInfo(name, count, null, launchable, incrementable));
    }

    return result;

  }
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.