Package com.arjuna.ats.jts.extensions

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


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

        if ((index % 2) == 0)
        {
          atomicTransaction.commit(true);
        }
        else
        {
          atomicTransaction.rollback();
        }
View Full Code Here


      atomicTransaction.begin();

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

      atomicTransaction.commit(true);

      if (value.value == (numberOfCalls / 2) && correct)
      {
        correct = true;
      }
View Full Code Here

      counter = CounterHelper.narrow(ORBInterface.orb().string_to_object(counterIOR));

      AtomicTransaction atomicTransaction = new AtomicTransaction();
      atomicTransaction.begin();
      counter.set(0, OTS.current().get_control());
      atomicTransaction.commit(true);
    }
    catch (Exception exception)
    {
      correct = false;
      System.err.println("exception in set operation " + exception);
View Full Code Here

        atomicTransaction.begin();

        implicitObject.no_tran_writelock();

        atomicTransaction.commit(true);
      }

      Date end = new Date();

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

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

        if ((index % 2) == 0)
        {
          atomicTransaction.commit(true);
        }
        else
        {
          atomicTransaction.rollback();
        }
View Full Code Here

      atomicTransaction.begin();

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

      atomicTransaction.commit(true);

      if (value.value == (numberOfCalls / 2) && correct)
      {
        correct = true;
      }
View Full Code Here

        atomicTransaction.begin();

        implicitObject.tran_rollback_readlock();

        atomicTransaction.commit(true);
      }

      Date end = new Date();

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

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

        if ((index % 2) == 0)
        {
          atomicTransaction.commit(true);
        }
        else
        {
          atomicTransaction.rollback();
        }
View Full Code Here

      atomicTransaction.begin();

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

      atomicTransaction.commit(true);

      if (value.value == (numberOfCalls / 2))
      {
        System.out.println("Passed");
      }
View Full Code Here

        atomicTransaction.begin();

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

        atomicTransaction.commit(true);
      }

      Date end = new Date();

      float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
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.