Package com.sun.grid.jam.job.entry

Examples of com.sun.grid.jam.job.entry.JobParams


          JobInfo info = new JobInfo(appParams.getName(),
                                     JobType.BATCH,
                                     name, userProperties.getLogin(),
                                     userProperties.getLogin(),
                                     new Random().nextInt());
          JobParams jp = new JobParams(info, -1,
                                       appParams.getScript(),
                                       appParams.getArgs());
          JobControlEntry jce = new JobControlEntry(info,
                                                    JobStatus.UNKNOWN,
                                                    JobAction.QUEUE,
View Full Code Here


      entry = new JobInfo();
      do {
        ob = server.space.take(entry, null,
                               JavaSpace.NO_WAIT);
      } while(ob != null);
      entry = new JobParams();
      do {
        ob = server.space.take(entry, null,
                               JavaSpace.NO_WAIT);
      } while(ob != null);
      entry = new JobControlEntry();
View Full Code Here

  {
    this.jobInfo = jobInfo;
    this.space = space;
    this.observer = observer;
    try {
      jpSnapshot = space.snapshot(new JobParams(jobInfo));
      jceSnapshot = space.snapshot(new JobControlEntry(jobInfo));
    } catch(Exception e) {
      throw new RemoteException(e.toString());  
    }
  }
View Full Code Here

    return jobInfo;
  }

  public JobParams getJobParams()
  {
    JobParams jp = null;
    try {
      jp = (JobParams)space.read(jpSnapshot, null,
                                 JavaSpace.NO_WAIT);
    } catch(Exception e) {
      System.out.println(e.toString());
View Full Code Here

    throws RemoteException
  {
    Transaction txn = null;
    try {
      txn = createTransaction(10 * 1000);
      JobParams old = (JobParams)
        space.takeIfExists(jpSnapshot, txn, JavaSpace.NO_WAIT);
      if(old == null) {
        txn.abort();
        throw new RemoteException("No JobParams in JavaSpace");
      }
View Full Code Here

  public JobObserver(JobInfo jobInfo, JavaSpace space)
    throws RemoteException
  {
    this.space = space;
    this.jobInfo = jobInfo;
    jParams = space.snapshot(new JobParams(jobInfo));
  }
View Full Code Here

      } catch(JobStatException jse) {
        txn.abort();
        return;
      }
      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;
View Full Code Here

      txn = createTransaction(5 * 1000);
      try {
        jce = (JobControlEntry)
          space.takeIfExists(entry, txn, JavaSpace.NO_WAIT);
        JobInfo ji = jce.jobInfo;
        JobParams jp = (JobParams)
          space.takeIfExists(new JobParams(ji),
                     txn, JavaSpace.NO_WAIT);
        if(jp != null) {
          if(jp.submissionID != null) {
            deleteFiles(jp);
          }
View Full Code Here

    try {
      txn = createTransaction(5 * 1000);
      try {
        jce = (JobControlEntry)
          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);
View Full Code Here

    try {
      txn = createTransaction(5 * 1000);
      try {
        jce = (JobControlEntry)
          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);
View Full Code Here

TOP

Related Classes of com.sun.grid.jam.job.entry.JobParams

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.