Package com.sun.grid.jam.job

Examples of com.sun.grid.jam.job.JobStatus


//                             + " ID: " + job.getID() +
//                             " stops sleeping");

//         System.out.println("-------------");
       
        JobStatus st = null;
        try {
          nativeAdapter.updateJobStat(job);
    //    System.out.println("Job "+job.getID()+":\n" +
    //           job.getStat().toString());
          st = getNextStatus(job.getStat());
        } catch(NativeSGECommException ncce){
        } catch(NativeSGEException ncrmae) {
          st = JobStatus.COMPLETED;
          terminate();
        }
        Transaction txn = null;
        try {
          txn = createTransaction(5 * 1000);
          JobControlEntry jce =
            (JobControlEntry)space.readIfExists(jControl, null,
                                                JavaSpace.NO_WAIT);
          if((st == null) || (jce == null)) {
            continue;
          }
          if(!st.equals(jce.jobStatus)) {
            jce = (JobControlEntry)
              space.takeIfExists(jControl, txn, JavaSpace.NO_WAIT);
            if(jce == null) {
              if(txn != null)
                txn.abort();
View Full Code Here


    run = false;
  }

  private JobStatus getNextStatus(JobStat js)
  {
    JobStatus st = JobStatus.UNKNOWN;
   
    switch(js.getStatus()) {

    case JobStat.JIDLE:
      if(js.containsState(JobStat._JHELD) &&
View Full Code Here

 
  public void updateInfo()
  {
    JobControlEntry jce = jobService.getJobControlEntry();
    if(jce != null) {
      JobStatus st = jce.jobStatus;
      JobAction ac = jce.jobAction;
      displayJobControlEntry(st, ac);
      setMonitorState(st, ac);
    }
    displayJobParams(jobService.getJobParams());
View Full Code Here

TOP

Related Classes of com.sun.grid.jam.job.JobStatus

Copyright © 2018 www.massapicom. 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.