Class ShardDataTree


  • public class ShardDataTree
    extends Object
    Internal shard state, similar to a DOMStore, but optimized for use in the actor system, e.g. it does not expose public interfaces and assumes it is only ever called from a single thread.

    This class is not part of the API contract and is subject to change at any time. It is NOT thread-safe.

    • Constructor Detail

      • ShardDataTree

        public ShardDataTree​(Shard shard,
                             org.opendaylight.yangtools.yang.model.api.SchemaContext schemaContext,
                             org.opendaylight.yangtools.yang.data.api.schema.tree.TreeType treeType)
    • Method Detail

      • getDataTree

        public org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree getDataTree()
      • notifyListeners

        public void notifyListeners​(org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate candidate)
      • registerTreeChangeListener

        public void registerTreeChangeListener​(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path,
                                               org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener listener,
                                               Optional<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate> initialState,
                                               Consumer<org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener>> onRegistration)
      • readNode

        public Optional<org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,​?>> readNode​(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier path)
      • newModification

        public org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification newModification()