Ensure that modifications are tracked by ShardTransaction 46/8346/1
authorMoiz Raja <moraja@cisco.com>
Fri, 20 Jun 2014 23:42:19 +0000 (16:42 -0700)
committerMoiz Raja <moraja@cisco.com>
Wed, 25 Jun 2014 18:53:33 +0000 (11:53 -0700)
commit0ba4da986712ca6a1bdce2ceb6b6ad1875416da6
treec223f2f87bfe00a1cabf85506f4667066783c735
parentf58c6afa340c7ba44145c83cbc42f49e0a95c4b8
Ensure that modifications are tracked by ShardTransaction

As modifications are made on a ShardTransaction they are applied to the transaction object that ShardTransaction wraps
However the modifications also need to be tracked. This tracking would be used ultimately by the Shard when persisting data.

Change-Id: I96061aa66a1cf3a9f225012bb22667504cfb3469
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardTransaction.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/CompositeModification.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/ImmutableCompositeModification.java [new file with mode: 0644]
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModification.java [new file with mode: 0644]
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardTransactionTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModificationTest.java [moved from opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/CompositeModificationTest.java with 85% similarity]