Class PruningDataTreeModification
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.opendaylight.controller.cluster.datastore.utils.PruningDataTreeModification
-
- All Implemented Interfaces:
DataTreeModification
,DataTreeSnapshot
,EffectiveModelContextProvider
- 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 Classes Modifier and Type Class Description static class
PruningDataTreeModification.Proactive
A PruningDataTreeModification which always performs pruning before attempting an operation.static class
PruningDataTreeModification.Reactive
A PruningDataTreeModification which performs pruning only when an operation results in anSchemaValidationFailedException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToCursor(DataTreeModificationCursor dataTreeModificationCursor)
protected DataTreeModification
delegate()
void
delete(YangInstanceIdentifier path)
EffectiveModelContext
getEffectiveModelContext()
DataTreeModification
newModification()
Optional<NormalizedNode>
readNode(YangInstanceIdentifier yangInstanceIdentifier)
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.api.schema.tree.DataTreeModification
merge, write
-
-
-
-
Method Detail
-
delegate
protected final DataTreeModification delegate()
- Specified by:
delegate
in classForwardingObject
-
getEffectiveModelContext
public final EffectiveModelContext getEffectiveModelContext()
- Specified by:
getEffectiveModelContext
in interfaceEffectiveModelContextProvider
-
delete
public final void delete(YangInstanceIdentifier path)
- Specified by:
delete
in interfaceDataTreeModification
-
ready
public final void ready()
- Specified by:
ready
in interfaceDataTreeModification
-
applyToCursor
public final void applyToCursor(DataTreeModificationCursor dataTreeModificationCursor)
- Specified by:
applyToCursor
in interfaceDataTreeModification
-
readNode
public final Optional<NormalizedNode> readNode(YangInstanceIdentifier yangInstanceIdentifier)
- Specified by:
readNode
in interfaceDataTreeSnapshot
-
newModification
public final DataTreeModification newModification()
- Specified by:
newModification
in interfaceDataTreeSnapshot
-
-