Package com.arjuna.ats.arjuna

Examples of com.arjuna.ats.arjuna.AtomicAction.begin()


  com.arjuna.ats.arjuna.common.Configuration.setAlternativeOrdering(true);
 
  try
  {
      A.begin();

      bo = new BasicObject();
      objId = bo.get_uid();

      A.removeThread();
View Full Code Here


      {
    A = new AtomicAction();
   
    txId = A.get_uid();
   
    A.begin();

    bo.activate();
     
    bo.destroy();
 
View Full Code Here

            logInformation(A.toString());

            logInformation("Starting nested action.");

            B.begin();

            logInformation(B.toString());

            logInformation("Committing top-level action. This should fail.");
View Full Code Here

            AtomicAction A = new AtomicAction();
      OnePhase opRes = new OnePhase();
     
      System.err.println("Starting top-level action.");

            A.begin();

      A.add(new LastResourceRecord(opRes));
      A.add(new ShutdownRecord(ShutdownRecord.FAIL_IN_PREPARE));
     
      A.commit();
View Full Code Here

    System.err.println("Confirmed that one-phase record is last in prepare.");

    A = new AtomicAction();
    opRes = new OnePhase();

    A.begin();
   
    System.err.println("\nStarting new top-level action.");

    A.add(new LastResourceRecord(opRes));
    A.add(new ShutdownRecord(ShutdownRecord.FAIL_IN_COMMIT));
View Full Code Here

    {
        System.err.println("Confirmed that one-phase record is first in commit.");

        A = new AtomicAction();
       
        A.begin();
       
        A.add(new LastResourceRecord(new OnePhase()));
       
        if (A.add(new LastResourceRecord(new OnePhase())) == AddOutcome.AR_DUPLICATE)
        {
View Full Code Here

private void test () throws Exception
    {
  AtomicAction A = new AtomicAction();

  A.begin();

  A = null;

  System.gc();
    }
View Full Code Here

  for (int i = 0; i < numberOfTransactions; i++)
  {
      AtomicAction A = new AtomicAction();

      A.begin();
      A.abort();
  }

  long ftime = Calendar.getInstance().getTime().getTime();
  long timeTaken = ftime - stime;
View Full Code Here

  {
      try
      {
    AtomicAction A = new AtomicAction();
   
    A.begin();
   
    A.add(new BasicRecord());

    A.commit();
      }
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.