BUG-5280: refactor CohortEntry 28/41428/3
authorRobert Varga <rovarga@cisco.com>
Wed, 6 Jul 2016 17:46:39 +0000 (19:46 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 11 Jul 2016 11:08:20 +0000 (13:08 +0200)
commit23472d531aca7f695082a3d57719894bfa34d0ac
treec6628cf3616aefb680a23b865bb8a37adf9b5e71
parent647fcf3b6ed4fb42f462be03e71f6d8244f71056
BUG-5280: refactor CohortEntry

CohortEntry can be created in two transaction states: open and ready.
Make this explicit by hiding the two constructors and exposing two
explicit factory methods.

Change-Id: I33cb5a272828b23b8a6a2da5fad2ac3ead83ee7b
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CohortEntry.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java