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
public class MergeModification extends WriteModification
MergeModification stores all the parameters required to merge data into the specified path.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.opendaylight.controller.cluster.datastore.modification.Modification
COMPOSITE, DELETE, MERGE, WRITE
-
-
Constructor Summary
Constructors Constructor Description MergeModification()
MergeModification(short version)
MergeModification(YangInstanceIdentifier path, NormalizedNode data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
MergeModification
public MergeModification()
-
MergeModification
public MergeModification(short version)
-
MergeModification
public MergeModification(YangInstanceIdentifier path, NormalizedNode data)
-
-
Method Detail
-
apply
public void apply(DOMStoreWriteTransaction transaction)
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
public void apply(DataTreeModification transaction)
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
-
-