Bug 629: Introduction of Configuration Commit Handler
authorTony Tkacik <ttkacik@cisco.com>
Mon, 16 Jun 2014 16:33:40 +0000 (18:33 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 16 Jun 2014 16:33:40 +0000 (18:33 +0200)
commit341f4858f4b3371622f794d0544120daf433f604
tree4b1caaf2d624e3462389aaeeb4ac898c7da9310f
parentd4f95fbfef385978f5e8eb0be603763ef9989169
Bug 629: Introduction of Configuration Commit Handler

One piece of functionality which was not-well defined
in original APIs and was missing in new APIs is
user-submitted commit handlers.

Contract of Commit Handlers was updated to reflect
more existing concept of three-phase commit and
to allow commit handlers only for configuration
subtree.

Access to proposed data is done via read-only
transaction instead of data change event,
since commit handlers may want to cross-reference
data with other and we need to capture this reads
as preconditions for later commit phases.

Change-Id: Id2049c05384dd74792f3cfbbb9f77bf684223be2
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncConfigurationCommitCohort.java [new file with mode: 0644]
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncConfigurationCommitCoordinator.java [new file with mode: 0644]
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncConfigurationCommitHandler.java [new file with mode: 0644]
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataValidationFailedException.java [new file with mode: 0644]