X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmodification%2FModification.java;h=59ca8eb3671370fecf91fa572f2c5b68c56dc851;hb=ccca30bbb1545643c427fc59c23329c5d49f8d4b;hp=6fc8183bd8f29b7e0b1e0c13ce34c4a73f9966f6;hpb=412db94945c5db5d2da918f5e23bd3abcecc4d10;p=controller.git 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 6fc8183bd8..59ca8eb367 100644 --- 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 @@ -5,26 +5,31 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - 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; +import org.opendaylight.yangtools.yang.data.codec.binfmt.NormalizedNodeDataOutput; /** * Represents a modification to the data store. + * *

* Simple modifications can be of type, + *

* *

- * 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 - *

+ * 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 { @@ -34,21 +39,26 @@ public interface Modification extends Externalizable { 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); /** - * 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(); - @Deprecated - Object toSerializable(); + @Override + void writeExternal(ObjectOutput out) throws IOException; + + @Override + void readExternal(ObjectInput in) throws IOException, ClassNotFoundException; + + void writeTo(NormalizedNodeDataOutput out) throws IOException; }