Class ShardDataTree
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.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 Summary
Constructors Constructor Description ShardDataTree(Shard shard, EffectiveModelContext schemaContext, TreeType treeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ShardDataTreeCohort>
getAndClearPendingTransactions()
DataTree
getDataTree()
DataTreeModification
newModification()
void
notifyListeners(DataTreeCandidate candidate)
Optional<NormalizedNode<?,?>>
readNode(YangInstanceIdentifier path)
void
registerTreeChangeListener(YangInstanceIdentifier path, DOMDataTreeChangeListener listener, Optional<DataTreeCandidate> initialState, Consumer<ListenerRegistration<DOMDataTreeChangeListener>> onRegistration)
-
-
-
Constructor Detail
-
ShardDataTree
public ShardDataTree(Shard shard, EffectiveModelContext schemaContext, TreeType treeType)
-
-
Method Detail
-
getDataTree
public DataTree getDataTree()
-
notifyListeners
public void notifyListeners(DataTreeCandidate candidate)
-
registerTreeChangeListener
public void registerTreeChangeListener(YangInstanceIdentifier path, DOMDataTreeChangeListener listener, Optional<DataTreeCandidate> initialState, Consumer<ListenerRegistration<DOMDataTreeChangeListener>> onRegistration)
-
readNode
public Optional<NormalizedNode<?,?>> readNode(YangInstanceIdentifier path)
-
newModification
public DataTreeModification newModification()
-
getAndClearPendingTransactions
public Collection<ShardDataTreeCohort> getAndClearPendingTransactions()
-
-