BUG-2006: Rework state tracking 17/11417/5
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)
commite2b377fe2eab74d96dea9baa05d129780d72c887
tree7d3513068e2858a294943f7a724f0332409c7ad4
parent95d1074f7f446784f76dc41525cecdb65688df6c
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