Package net.jini.core.transaction

Examples of net.jini.core.transaction.Transaction.abort()


        space.write(jce, txn, Lease.FOREVER);
        //destroyJobService(jce);
      } catch(Exception ex) {
        System.out.println("--RMServer- Deleting job service aborted "
                           + ex);
        txn.abort();
      }
      txn.commit();
    } catch(Exception e) {
      System.out.println("--RMServer- Deleting job service aborted "
                         + e);
View Full Code Here


          space.write(jp, txn, Lease.FOREVER);
          space.write(jce, txn, Lease.FOREVER);
          //System.out.println("--QueueProxy--: submitting:\n" + info
          //                   +"\n" + jp + "\n"+ jce);
        } catch(Exception ex) {
          txn.abort();
          throw new ApplicationSubmissionException(ex.getMessage());
        }
        txn.commit();
      } catch(Exception e) {
        //e.printStackTrace();
View Full Code Here

    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");
      }
      space.write(jp, txn, Lease.FOREVER);
    } catch(Exception ex) {
      throw new RemoteException(ex.toString());
View Full Code Here

          if(!st.equals(jce.jobStatus)) {
            jce = (JobControlEntry)
              space.takeIfExists(jControl, txn, JavaSpace.NO_WAIT);
            if(jce == null) {
              if(txn != null)
                txn.abort();
              continue;
            } else {
              jce.jobStatus = st;
              if(jce.jobAction.equals(JobAction.BLOCK)) {
                //To be deleted
View Full Code Here

          stat = new JobStat(JobStat.JRUNNING,
                             JobStat.JRUNNING);
          break;
         
        default:
          txn.abort();
          return;
        }
      } catch(JobStatException jse) {
        txn.abort();
        return;
View Full Code Here

        default:
          txn.abort();
          return;
        }
      } catch(JobStatException jse) {
        txn.abort();
        return;
      }
      try {
        JobParams jp = (JobParams)
          space.readIfExists(new JobParams(jce.jobInfo),
View Full Code Here

          space.write(jce, txn, Lease.FOREVER);
          nativeSGERMAdapter.changeJobState(jcod, stat);
        }
      } catch(Exception ex) {
        ex.printStackTrace();
        txn.abort();
      }
      txn.commit();
    } catch(Exception e) {
      System.out.println("--RMAdapter--: ChangeJobState failed" + e);
    }
View Full Code Here

          space.write(jp, txn, Lease.FOREVER);
          space.write(jce, txn, Lease.FOREVER);
        }
      } catch(Exception ex) {
        ex.printStackTrace();
        txn.abort();
        return;
      }
      txn.commit();
    } catch(Exception e) {
      System.out.println("-- RMAdapter --:Exception in submitting job: "
View Full Code Here

          jce.jobAction = JobAction.BLOCK;
          space.write(jce, txn, Lease.FOREVER);
        }
      } catch(Exception ex) {
        ex.printStackTrace();
        txn.abort();
        return;
      }
      txn.commit();
    } catch(Exception e) {
      System.out.println("--RMAdapter: ChangeJobState failed" + e);
View Full Code Here

          jce.jobAction = JobAction.BLOCK;
          space.write(jce, txn, Lease.FOREVER);
        }
      } catch(Exception ex) {
        ex.printStackTrace();
        txn.abort();
        return;
      }
      txn.commit();
    } catch(Exception e) {
      System.out.println("--RMAdapter: ChangeJobState failed" + e);
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.