Class MergeModification
java.lang.Object
org.opendaylight.controller.cluster.datastore.modification.AbstractModification
org.opendaylight.controller.cluster.datastore.modification.WriteModification
org.opendaylight.controller.cluster.datastore.modification.MergeModification
- All Implemented Interfaces:
Externalizable
,Serializable
,Modification
MergeModification stores all the parameters required to merge data into the specified path.
- See Also:
-
Field Summary
Fields inherited from interface org.opendaylight.controller.cluster.datastore.modification.Modification
COMPOSITE, DELETE, MERGE, WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionMergeModification
(short version) MergeModification
(YangInstanceIdentifier path, NormalizedNode data) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(DOMStoreWriteTransaction transaction) Apply the modification to the specified transaction.void
apply
(DataTreeModification transaction) Apply the modification to the specified transaction.static MergeModification
fromStream
(NormalizedNodeDataInput in, short version, ReusableStreamReceiver receiver) byte
getType()
Methods inherited from class org.opendaylight.controller.cluster.datastore.modification.WriteModification
getData, readExternal, writeExternal, writeTo
Methods inherited from class org.opendaylight.controller.cluster.datastore.modification.AbstractModification
getPath, getVersion, setPath
-
Constructor Details
-
MergeModification
public MergeModification() -
MergeModification
public MergeModification(short version) -
MergeModification
-
-
Method Details
-
apply
Description copied from interface:Modification
Apply the modification to the specified transaction.- Specified by:
apply
in interfaceModification
- Overrides:
apply
in classWriteModification
- Parameters:
transaction
- the transaction
-
apply
Description copied from interface:Modification
Apply the modification to the specified transaction.- Specified by:
apply
in interfaceModification
- Overrides:
apply
in classWriteModification
- Parameters:
transaction
- the transaction
-
getType
public byte getType()- Specified by:
getType
in interfaceModification
- Overrides:
getType
in classWriteModification
-
fromStream
public static MergeModification fromStream(NormalizedNodeDataInput in, short version, ReusableStreamReceiver receiver) throws IOException - Throws:
IOException
-