Class PruningDataTreeModification
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.opendaylight.controller.cluster.datastore.utils.PruningDataTreeModification
-
- All Implemented Interfaces:
DataTreeModification,DataTreeSnapshot,SchemaContextProvider
- 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 classPruningDataTreeModification.ProactiveA PruningDataTreeModification which always performs pruning before attempting an operation.static classPruningDataTreeModification.ReactiveA PruningDataTreeModification which performs pruning only when an operation results in anSchemaValidationFailedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToCursor(DataTreeModificationCursor dataTreeModificationCursor)protected DataTreeModificationdelegate()voiddelete(YangInstanceIdentifier path)SchemaContextgetSchemaContext()DataTreeModificationnewModification()Optional<NormalizedNode<?,?>>readNode(YangInstanceIdentifier yangInstanceIdentifier)voidready()-
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:
delegatein classForwardingObject
-
getSchemaContext
public final SchemaContext getSchemaContext()
- Specified by:
getSchemaContextin interfaceSchemaContextProvider
-
delete
public final void delete(YangInstanceIdentifier path)
- Specified by:
deletein interfaceDataTreeModification
-
ready
public final void ready()
- Specified by:
readyin interfaceDataTreeModification
-
applyToCursor
public final void applyToCursor(DataTreeModificationCursor dataTreeModificationCursor)
- Specified by:
applyToCursorin interfaceDataTreeModification
-
readNode
public final Optional<NormalizedNode<?,?>> readNode(YangInstanceIdentifier yangInstanceIdentifier)
- Specified by:
readNodein interfaceDataTreeSnapshot
-
newModification
public final DataTreeModification newModification()
- Specified by:
newModificationin interfaceDataTreeSnapshot
-
-