Package com.arjuna.ats.jts.extensions

Examples of com.arjuna.ats.jts.extensions.AtomicTransaction.commit()


      IntHolder value = new IntHolder();
      AtomicTransaction atomicTransaction = new AtomicTransaction();

      atomicTransaction.begin();
      counter.get(value, OTS.current().get_control());
      atomicTransaction.commit(true);

      correct = correct && (value.value == (numberOfWorkers * numberOfCalls));

      if (correct)
      {
View Full Code Here


          try
          {
            _counter.increase(OTS.current().get_control());
            index++;
            atomicTransaction.commit(true);
          }
          catch (InvocationException invocationException)
          {
            atomicTransaction.rollback();
          }
View Full Code Here

          atomicTransaction.begin();

          counter.increase(OTS.current().get_control());

          atomicTransaction.commit(true);
        }
      }
      catch (org.omg.CORBA.TRANSACTION_ROLLEDBACK e)
      {
        /*
 
View Full Code Here

      IntHolder value = new IntHolder();
      counter.get(value, OTS.current().get_control());

      try
      {
        atomicTransaction.commit(true);
      }
      catch (org.omg.CORBA.TRANSACTION_ROLLEDBACK e)
      {
        if (!expectingFailure)
        {
View Full Code Here

      atomicTransaction.begin();

      if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED)
      {
        atomicTransaction.commit(true);
      }
      else
      {
        System.err.println("AITExplicitObjectImpl01.AITExplicitObjectImpl01: failed to get lock");
        atomicTransaction.rollback();
View Full Code Here

      try
      {
        atomicTransaction.begin();

        atomicTransaction.commit(true);
      }
      catch (Exception exception)
      {
        System.err.println("AITExplicitObjectImpl01.tran_commit_nulloper: " + exception);
        if (atomicTransaction.get_status() == Status.StatusActive)
View Full Code Here

      {
        atomicTransaction.begin();

        if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED)
        {
          atomicTransaction.commit(true);
        }
        else
        {
          atomicTransaction.rollback();
View Full Code Here

        atomicTransaction.begin();

        explicitObject.tran_commit_readlock(OTS.current().get_control());

        atomicTransaction.commit(true);
      }

      Date end = new Date();

      float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
View Full Code Here

        atomicTransaction.begin();

        explicitObject.no_tran_readlock(OTS.current().get_control());

        atomicTransaction.commit(true);
      }

      Date end = new Date();

      float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
View Full Code Here

      {
        atomicTransaction.begin();

        if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED)
        {
          atomicTransaction.commit(true);
        }
        else
        {
          atomicTransaction.rollback();
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.