Merge "Bug 1073: Introduced Transaction Chain to DOMStore APIs."
authorEd Warnicke <eaw@cisco.com>
Fri, 30 May 2014 12:25:16 +0000 (12:25 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 30 May 2014 12:25:16 +0000 (12:25 +0000)
1  2 
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java

@@@ -28,6 -28,7 +28,7 @@@ import org.opendaylight.controller.sal.
  import org.opendaylight.controller.sal.core.spi.data.DOMStoreReadWriteTransaction;
  import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort;
  import org.opendaylight.controller.sal.core.spi.data.DOMStoreTransaction;
+ import org.opendaylight.controller.sal.core.spi.data.DOMStoreTransactionChain;
  import org.opendaylight.controller.sal.core.spi.data.DOMStoreWriteTransaction;
  import org.opendaylight.yangtools.concepts.AbstractListenerRegistration;
  import org.opendaylight.yangtools.concepts.Identifiable;
@@@ -80,6 -81,11 +81,11 @@@ public class InMemoryDOMDataStore imple
          return new SnapshotBackedWriteTransaction(nextIdentifier(), dataTree.takeSnapshot(), this);
      }
  
+     @Override
+     public DOMStoreTransactionChain createTransactionChain() {
+         throw new UnsupportedOperationException("Not implemented yet.");
+     }
      @Override
      public synchronized void onGlobalContextUpdated(final SchemaContext ctx) {
          dataTree.setSchemaContext(ctx);
              ready = true;
  
              LOG.debug("Store transaction: {} : Ready", getIdentifier());
 -            mutableTree.seal();
 +            mutableTree.ready();
              return store.submit(this);
          }