Package com.arjuna.ats.arjuna.objectstore

Examples of com.arjuna.ats.arjuna.objectstore.ObjectStore


      if (ObjectStoreType.valid(objStoreType))
      {
        /* discard old store before creating new */

        if (store == null)
          store = new ObjectStore(
              ObjectStoreType.typeToClassName(objStoreType));

        store.unpack(os);
        shadowMade = os.unpackBoolean();

View Full Code Here


   
      if (ObjectStoreType.valid(objStoreType))
      {
    store = null;
     
    store = new ObjectStore(ObjectStoreType.typeToClassName(objStoreType));
    store.unpack(os);
     
    objectUid.unpack(os);
    typeName = os.unpackString();
      }
View Full Code Here

        }
        else
        {
            String rootStr = (String)provider.getRoots().firstElement();

            _objectStore = new ObjectStore(new ClassName(rootStr));

            _treeModel = new DefaultTreeModel(createTree());
            _tree = new JTree(_treeModel);
            _tree.addTreeSelectionListener(this);
            _tree.addTreeWillExpandListener(this);
View Full Code Here

            Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

            _stateViewer.clear();
            _stateViewer.setVisible(false);
            _objectStore = new ObjectStore(new com.arjuna.ats.arjuna.gandiva.ClassName(objectStoreRoot));
            _treeModel.setRoot(createTree());

            Thread.currentThread().setContextClassLoader(loader);

        }
View Full Code Here

/*     */     }
/*     */
/* 233 */     Xid[] indoubt = null;
/*     */     try
/*     */     {
/* 237 */       ObjectStore objStore = new ObjectStore(TxControl.getActionStoreType());
/* 238 */       InputObjectState states = new InputObjectState();
/*     */
/* 242 */       if ((objStore.allObjUids(SubordinateAtomicAction.getType(), states)) && (states.notempty()))
/*     */       {
/* 244 */         Stack values = new Stack();
/* 245 */         boolean finished = false;
/*     */         do
/*     */         {
View Full Code Here

      throw new BAD_PARAM();
    else
    {
      // if here then it is not active, so look in the object store

      ObjectStore store = com.arjuna.ats.arjuna.coordinator.TxControl.getStore();

      try
      {
        /*
         * 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

      throw new BAD_PARAM();
    else
    {
      // if here then it is not active, so look in the object store

      ObjectStore store = com.arjuna.ats.arjuna.coordinator.TxControl.getStore();

      try
      {
        /*
         * 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, ArjunaTransactionImple.typeName());

        switch (status)
        {
        case ObjectStore.OS_UNKNOWN: // means no state present, so check
                       // if server transaction
View Full Code Here

    private void init(String storeDir, String impleType)
    {
        System.setProperty("com.arjuna.ats.arjuna.objectstore.objectStoreDir", storeDir);

        if (impleType != null)
            store = new ObjectStore(new ClassName(impleType), (String) null);
        else
            store = new ObjectStore();
    }
View Full Code Here

            /*
             * Defaults to ObjectStore.OS_UNSHARED
             */

            if (sharedTransactionLog)
                    return new ObjectStore(recoveryType, ObjectStore.OS_SHARED);
            else
                    return new ObjectStore(recoveryType);
        }
View Full Code Here

    /*
     * Defaults to ObjectStore.OS_UNSHARED
     */

    if (sharedTransactionLog)
      return new ObjectStore(actionStoreType, ObjectStore.OS_SHARED);
    else
      return new ObjectStore(actionStoreType);
  }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.objectstore.ObjectStore

Copyright © 2018 www.massapicom. 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.