Class PruningDataTreeModification
java.lang.Object
com.google.common.collect.ForwardingObject
org.opendaylight.controller.cluster.datastore.utils.PruningDataTreeModification
- All Implemented Interfaces:
DataTreeModification,DataTreeSnapshot
- Direct Known Subclasses:
PruningDataTreeModification.Proactive,PruningDataTreeModification.Reactive
public abstract class PruningDataTreeModification
extends ForwardingObject
implements DataTreeModification
The PruningDataTreeModification first removes all entries from the data which do not belong in the schemaContext
before delegating it to the actual DataTreeModification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA PruningDataTreeModification which always performs pruning before attempting an operation.static final classA PruningDataTreeModification which performs pruning only when an operation results in anSchemaValidationFailedException. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidapplyToCursor(DataTreeModificationCursor dataTreeModificationCursor) protected final DataTreeModificationdelegate()final voiddelete(YangInstanceIdentifier path) final EffectiveModelContextfinal DataTreeModificationfinal Optional<NormalizedNode> readNode(YangInstanceIdentifier yangInstanceIdentifier) final Optional<VersionInfo> final voidready()Methods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeModification
merge, write
-
Method Details
-
delegate
- Specified by:
delegatein classForwardingObject
-
modelContext
- Specified by:
modelContextin interfaceDataTreeSnapshot
-
delete
- Specified by:
deletein interfaceDataTreeModification
-
ready
public final void ready()- Specified by:
readyin interfaceDataTreeModification
-
applyToCursor
- Specified by:
applyToCursorin interfaceDataTreeModification
-
readNode
- Specified by:
readNodein interfaceDataTreeSnapshot
-
readVersionInfo
- Specified by:
readVersionInfoin interfaceDataTreeSnapshot
-
newModification
- Specified by:
newModificationin interfaceDataTreeSnapshot
-