Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move byte-based serialization method
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
modification
/
Modification.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java
index 6fc8183bd8f29b7e0b1e0c13ce34c4a73f9966f6..b11357e61ab13377e34bd80c1712c3d01fef26c0 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java
@@
-9,22
+9,27
@@
package org.opendaylight.controller.cluster.datastore.modification;
import java.io.Externalizable;
package org.opendaylight.controller.cluster.datastore.modification;
import java.io.Externalizable;
-import org.opendaylight.controller.sal.core.spi.data.DOMStoreWriteTransaction;
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
/**
* Represents a modification to the data store.
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
/**
* Represents a modification to the data store.
+ *
* <p>
* Simple modifications can be of type,
* <p>
* Simple modifications can be of type,
+ * <ul>
* <li> {@link org.opendaylight.controller.cluster.datastore.modification.WriteModification}
* <li> {@link org.opendaylight.controller.cluster.datastore.modification.MergeModification}
* <li> {@link org.opendaylight.controller.cluster.datastore.modification.DeleteModification}
* <li> {@link org.opendaylight.controller.cluster.datastore.modification.WriteModification}
* <li> {@link org.opendaylight.controller.cluster.datastore.modification.MergeModification}
* <li> {@link org.opendaylight.controller.cluster.datastore.modification.DeleteModification}
- * </
p
>
+ * </
ul
>
*
* <p>
*
* <p>
- * Modifications can in turn be lumped into a single
{@link org.opendaylight.controller.cluster.datastore.modification.CompositeModification}
- *
which can then be applied to a write transaction
- *
</p>
+ * Modifications can in turn be lumped into a single
+ *
{@link org.opendaylight.controller.cluster.datastore.modification.CompositeModification}
+ *
which can then be applied to a write transaction.
*/
public interface Modification extends Externalizable {
*/
public interface Modification extends Externalizable {
@@
-34,21
+39,24
@@
public interface Modification extends Externalizable {
byte DELETE = 4;
/**
byte DELETE = 4;
/**
- * Apply the modification to the specified transaction
+ * Apply the modification to the specified transaction
.
*
*
- * @param transaction
+ * @param transaction
the transaction
*/
void apply(DOMStoreWriteTransaction transaction);
/**
*/
void apply(DOMStoreWriteTransaction transaction);
/**
- * Apply the modification to the specified transaction
+ * Apply the modification to the specified transaction
.
*
*
- * @param transaction
+ * @param transaction
the transaction
*/
void apply(DataTreeModification transaction);
byte getType();
*/
void apply(DataTreeModification transaction);
byte getType();
- @Deprecated
- Object toSerializable();
+ @Override
+ void writeExternal(ObjectOutput out) throws IOException;
+
+ @Override
+ void readExternal(ObjectInput in) throws IOException, ClassNotFoundException;
}
}