X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fstore%2Fimpl%2Ftree%2FDataTreeCandidate.java;h=d860dfc064cbbbb6420b39dc47840ad3f78040bf;hb=309fb98d0bcaa1ea1333d5ec67c6c967836aefcc;hp=906e2844291fc502bae2a2534fe71bf1cb1d02a6;hpb=b80124e3f7b11cf2f5e5bd4a6b033d855ff4d0d4;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/DataTreeCandidate.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/DataTreeCandidate.java index 906e284429..d860dfc064 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/DataTreeCandidate.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/DataTreeCandidate.java @@ -9,7 +9,27 @@ package org.opendaylight.controller.md.sal.dom.store.impl.tree; import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier; +/** + * An encapsulation of a validated data tree modification. This candidate + * is ready for atomic commit to the datastore. It allows access to before- + * and after-state as it will be seen in to subsequent commit. This capture + * can be accessed for reference, but cannot be modified and the content + * is limited to nodes which were affected by the modification from which + * this instance originated. + */ public interface DataTreeCandidate { + /** + * Get the candidate tree root node. + * + * @return Candidate tree root node + */ DataTreeCandidateNode getRootNode(); + + /** + * Get the candidate tree root path. This is the path of the root node + * relative to the root of InstanceIdentifier namespace. + * + * @return Relative path of the root node + */ InstanceIdentifier getRootPath(); }