Examples of abort()


Examples of com.sun.sgs.test.util.DummyTransaction.abort()

        System.err.println("txn2: " + e);
        exception2 = e;
    } catch (Exception e) {
        System.err.println("txn2: " + e);
        if (txn2 != null) {
      txn2.abort(new RuntimeException("abort txn2"));
        }
    }
      }
  }
  MyRunnable runnable = new MyRunnable();
View Full Code Here

Examples of com.vmware.vim.binding.vim.HttpNfcLease.abort()

         logger.error(e.getCause());
         try {
            /*
             * By aborting the lease, VC also deletes the VM.
             */
            nfcLease.abort(null);
         } catch (Exception e1) {
            logger.error("got exception trying to abort nfcLease", e1);
         }
         throw VcException.UPLOAD_ERROR(e);
      }
View Full Code Here

Examples of com.yahoo.omid.client.TransactionManager.abort()

            r = rs.next();
         }
        
         assertTrue("Expected 1 row modified, but " + modifiedrows + " are.",
                    modifiedrows == 1);
         tm.abort(t2);
        
         TransactionState tscan = tm.beginTransaction();
         rs = tt.getScanner(tscan, new Scan().setStartRow(startrow).setStopRow(stoprow).addColumn(fam, col));
         r = rs.next();
         while (r != null) {
View Full Code Here

Examples of de.danet.an.workflow.api.Process.abort()

  // start the process
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  Thread.sleep (1000);
  process.suspend();
  process.abort();
  Thread.sleep (2000);
  boolean procExists = true;
  try {
      procDir.lookupProcess("ut-process/jut5", processKey);
  } catch (Exception e) {
View Full Code Here

Examples of de.danet.an.workflow.internalapi.ExtProcessLocal.abort()

      for (Iterator i = subs.iterator (); i.hasNext();) {
    ExtProcessLocal p = (ExtProcessLocal)i.next();
    try {
        if (p.typedState().isSameOrSubState
      (NotRunningState.SUSPENDED)) {
      p.abort ();
        } else {
      try {
          p.terminate ();
      } catch (CannotStopException e) {
          try {
View Full Code Here

Examples of de.danet.an.workflow.localapi.ActivityLocal.abort()

    for (Iterator it = stepsLocal().iterator(); it.hasNext();) {
        ActivityLocal act = (ActivityLocal)it.next();
        try {
      if (act.typedState().isSameOrSubState
          (NotRunningState.SUSPENDED)) {
          act.abort ();
      } else if (act.typedState().isSameOrSubState
           (OpenState.RUNNING)) {
          try {
        act.terminate();
          } catch (CannotStopException e) {
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfProcessLocal.abort()

          p.suspend ();
      } catch (AlreadySuspendedException as) {
          // the better, make checkstyle happy
          int dummy = 0;
      }
      p.abort ();
        } catch (CannotSuspendException ee) {
      throw new CannotStopException
          ("To be aborted sub-process cannot be suspended: "
           + e.getMessage ());
        } catch (NotRunningException ee) {
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.abort()

      ("open.not_running.suspended").iterator();
        if (!sa.hasNext ()) {
      proc.terminate();
        } else {
      WfActivity act = (WfActivity)sa.next ();
      act.abort();
        }
        if (!waitForState (proc, "closed")) {
      System.out.println ("Cannot terminate " + proc);
      return;
        }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.abort()

  WfProcess process = createProcess("ut-process", "jut2", req);
  assertTrue(process.state().equals("open.not_running.not_started"));
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  process.suspend();
  process.abort();
  assertTrue(process.state().equals("closed.aborted"));
    }

    //Suspend Process then resume it
    private void suspendresumeProcess() throws Exception {
View Full Code Here

Examples of de.zib.scalaris.Transaction.abort()

                System.out.print("    Committing transaction... ");
                transaction.commit();
                System.out.println("done");
            } catch (final TimeoutException e) {
                // read/write operation
                transaction.abort();
                System.out.println("    Transaction aborted due to timeout: "
                        + e.getMessage());
            } catch (final NotFoundException e) {
                // read/write operation
                transaction.abort();
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.