Package com.arjuna.ats.arjuna.objectstore

Examples of com.arjuna.ats.arjuna.objectstore.ObjectStore.currentState()


        }
        while (id.notEquals(Uid.nullUid()));
       
        if ((numberOfEntries == ids.length -1) && passed)
        {
          if (objStore.currentState(ids[0], type) != ObjectStore.OS_UNKNOWN)
            passed = false;
          else
          {
            if (objStore.currentState(ids[1], type) != ObjectStore.OS_COMMITTED)
              passed = false;
View Full Code Here


        {
          if (objStore.currentState(ids[0], type) != ObjectStore.OS_UNKNOWN)
            passed = false;
          else
          {
            if (objStore.currentState(ids[1], type) != ObjectStore.OS_COMMITTED)
              passed = false;
          }
        }
        else
        {
View Full Code Here

            System.err.println("Creating dummy log");
           
            os.write_committed(kungfuTx, tn, fluff);

            if (os.currentState(kungfuTx, tn) == ObjectStore.OS_COMMITTED)
            {
                System.err.println("Wrote dummy transaction "+kungfuTx);

                System.setProperty(RecoveryEnvironment.EXPIRY_SCAN_INTERVAL, "1");
                System.setProperty(Environment.PERIODIC_RECOVERY_PERIOD, "8000000");
View Full Code Here

                {                 
                }
               
                manager.scan();
               
                if (os.currentState(kungfuTx, tn) == ObjectStore.OS_COMMITTED)
                    System.err.println("Transaction log not moved!");
                else
                {
                    System.err.println("Transaction log moved!");
                   
View Full Code Here

          if (theUid.equals(Uid.nullUid()))
              endOfUids = true;
          else
          {
              System.out.print("\t"+theUid+" state is ");
              System.out.print(ObjectStore.stateStatusString(imple.currentState(theUid, theName)));
              System.out.println();
          }
            }
        }
        catch (Exception e)
View Full Code Here

          if (theUid.equals(Uid.nullUid()))
              endOfUids = true;
          else
          {
              System.out.print("\t"+theUid+" state is ");
              System.out.print(ObjectStore.stateStatusString(imple.currentState(theUid, theName)));

              System.out.println();
          }
            }
        }
View Full Code Here

                first = false;
            }
         
            DefaultMutableTreeNode tranID = new DefaultMutableTreeNode(theUid.stringForm());

            tranID.add(new DefaultMutableTreeNode(new String("status: "+statusToString(imple.currentState(theUid, fullPathName)))));

            currentNode.add(tranID);

            added = true;
              }
View Full Code Here

              endOfUids = true;
          else
          {
              DefaultMutableTreeNode tranID = new DefaultMutableTreeNode(theUid.stringForm());

              tranID.add(new DefaultMutableTreeNode(new String("status: "+statusToString(imple.currentState(theUid, fullPathName)))));

              currentNode.add(tranID);
          }
            }
        }
View Full Code Here

  try
  {
      ObjectStore imple = new ObjectStore();

      System.out.println("Status is "+imple.currentState(new Uid(uid), type));

      InputObjectState buff = new InputObjectState();
     
      imple.allObjUids(type, buff, ObjectStore.OS_UNCOMMITTED);
     
View Full Code Here

         * Do we need to search server transactions too? Possibly not,
         * since an interposed coordinator can never always say with
         * certainty what the status is of the root coordinator.
         */

        int status = store.currentState(u, ServerTransaction.typeName());

        switch (status)
        {
        case ObjectStore.OS_UNKNOWN: // means no state present
          return org.omg.CosTransactions.Status.StatusNoTransaction;
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.