Class WriteModification
java.lang.Object
org.opendaylight.controller.cluster.datastore.modification.AbstractModification
org.opendaylight.controller.cluster.datastore.modification.WriteModification
- All Implemented Interfaces:
Externalizable
,Serializable
,Modification
- Direct Known Subclasses:
MergeModification
WriteModification stores all the parameters required to write data to the specified path.
- See Also:
-
Field Summary
Fields inherited from interface org.opendaylight.controller.cluster.datastore.modification.Modification
COMPOSITE, DELETE, MERGE, WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionWriteModification
(short version) WriteModification
(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 WriteModification
fromStream
(NormalizedNodeDataInput in, short version, ReusableStreamReceiver receiver) getData()
byte
getType()
void
void
void
Methods inherited from class org.opendaylight.controller.cluster.datastore.modification.AbstractModification
getPath, getVersion, setPath
-
Constructor Details
-
WriteModification
public WriteModification() -
WriteModification
public WriteModification(short version) -
WriteModification
-
-
Method Details
-
apply
Description copied from interface:Modification
Apply the modification to the specified transaction.- Parameters:
transaction
- the transaction
-
apply
Description copied from interface:Modification
Apply the modification to the specified transaction.- Parameters:
transaction
- the transaction
-
getData
-
getType
public byte getType() -
readExternal
- Throws:
IOException
-
writeExternal
- Throws:
IOException
-
fromStream
public static WriteModification fromStream(NormalizedNodeDataInput in, short version, ReusableStreamReceiver receiver) throws IOException - Throws:
IOException
-
writeTo
- Throws:
IOException
-