BUG-2006: Rework state tracking
authorRobert Varga <rovarga@cisco.com>
Thu, 18 Sep 2014 13:53:24 +0000 (15:53 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 16 Oct 2014 13:01:26 +0000 (13:01 +0000)
commit002023210372d88d4e111cf578bedeb8e32ce6a9
treef449fdd08afbd722effe30519734cb339f5b7228
parentb395d6113bacb54e7348291d493b4916cd1d08b8
BUG-2006: Rework state tracking

Separate out the two embedded classes to allow easier analysis of
interactions. Introduce a state-tracking class within
DOMStoreTransactionChainImpl with three distinct states: Idle, Allocated
and Shutdown. The allocated state has an internal sub-state when the
transaction has been readied. Perform atomic state transitions using
compare-and-swap.

Change-Id: I4b852d42455d7e07076c56af3626f804ba572770
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/ChainedTransactionCommitImpl.java [new file with mode: 0644]
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/DOMStoreTransactionChainImpl.java [new file with mode: 0644]
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java