Examples of SGEJob


Examples of com.sun.grid.jam.gridengine.job.SGEJob

      try {
        JobParams jp = (JobParams)
          space.readIfExists(new JobParams(jce.jobInfo),
                             txn, JavaSpace.NO_WAIT);
        if(jp != null) {
          SGEJob jcod = new
            SGEJob(jp.submissionName, jp.submissionID.intValue());
          jce.jobAction = JobAction.BLOCK;
          space.write(jce, txn, Lease.FOREVER);
          nativeSGERMAdapter.changeJobState(jcod, stat);
        }
View Full Code Here

Examples of com.sun.grid.jam.gridengine.job.SGEJob

  }
 
  private int nativeSubmission(JobParams jp)
    throws Exception
  {
    SGEJob jcod = new SGEJob(jp.submissionName, null, cwd);
    if(jp.args != null && jp.args.length > 0) {
      for(int i = 0; i < jp.args.length; i ++)
        jcod.addArg(jp.args[i]);
    }
    jcod.addStdoutPath(new HostPath(jp.output.getFile()));
    jcod.addStderrPath(new HostPath(jp.error.getFile()));
    if(jp.jobInfo.queueName.equals(SGEQueue.QMASTER_NAME)) {
      nativeSGERMAdapter.submitJob(jcod, null);
    } else {
      SGEQueue queue = new SGEQueue(jp.jobInfo.queueName);
      nativeSGERMAdapter.submitJob(jcod, queue);
    }
    return jcod.getID();
  }
View Full Code Here

Examples of com.sun.grid.jam.gridengine.job.SGEJob

          space.takeIfExists(entry, txn, JavaSpace.NO_WAIT);
        JobParams jp = (JobParams)
          space.readIfExists(new JobParams(jce.jobInfo),
                             txn, JavaSpace.NO_WAIT);
        if(jp != null) {
          SGEJob jcod = new SGEJob(jp.submissionName,
                                         jp.submissionID.intValue());
          nativeSGERMAdapter.unHold(jcod);
          jce.jobAction = JobAction.BLOCK;
          space.write(jce, txn, Lease.FOREVER);
        }
View Full Code Here

Examples of com.sun.grid.jam.gridengine.job.SGEJob

          space.takeIfExists(entry, txn, JavaSpace.NO_WAIT);
        JobParams jp = (JobParams)
          space.readIfExists(new JobParams(jce.jobInfo),
                             txn, JavaSpace.NO_WAIT);
        if(jp != null) {
          SGEJob jcod = new SGEJob(jp.submissionName,
                                         jp.submissionID.intValue());
          nativeSGERMAdapter.deleteJob(jcod);
          jce.jobAction = JobAction.BLOCK;
          space.write(jce, txn, Lease.FOREVER);
        }
View Full Code Here

Examples of com.sun.grid.jam.gridengine.job.SGEJob

            SingleJobStatusTracer tr = (SingleJobStatusTracer)
              tracerTable.remove(jp.jobID);
            if(tr != null) {
              tr.terminate();
            }
            SGEJob codJob = new SGEJob(jp.submissionName,
                                             jp.submissionID.intValue());
            try {
              nativeSGERMAdapter.deleteJob(codJob);
            } catch(NativeSGECommException ncce) {
            } catch(NativeSGEException ncrmae) {
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.