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 class
A PruningDataTreeModification which always performs pruning before attempting an operation.static final class
A PruningDataTreeModification which performs pruning only when an operation results in anSchemaValidationFailedException
. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
applyToCursor
(DataTreeModificationCursor dataTreeModificationCursor) protected final DataTreeModification
delegate()
final void
delete
(YangInstanceIdentifier path) final EffectiveModelContext
final DataTreeModification
final Optional<NormalizedNode>
readNode
(YangInstanceIdentifier yangInstanceIdentifier) final void
ready()
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeModification
merge, write
-
Method Details
-
delegate
- Specified by:
delegate
in classForwardingObject
-
modelContext
- Specified by:
modelContext
in interfaceDataTreeSnapshot
-
delete
- Specified by:
delete
in interfaceDataTreeModification
-
ready
public final void ready()- Specified by:
ready
in interfaceDataTreeModification
-
applyToCursor
- Specified by:
applyToCursor
in interfaceDataTreeModification
-
readNode
- Specified by:
readNode
in interfaceDataTreeSnapshot
-
newModification
- Specified by:
newModification
in interfaceDataTreeSnapshot
-