Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 4105: Pass ModuleShardConfiguration with CreateShard
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
modification
/
AbstractModification.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java
index 5d9f96277ddcba65b05801ea328c8e80333744f3..77f0858d7b1ef9119fb5b2bff9039de0d30e4536 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModification.java
@@
-9,21
+9,33
@@
package org.opendaylight.controller.cluster.datastore.modification;
package org.opendaylight.controller.cluster.datastore.modification;
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
-
-import java.io.Serializable;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
/**
* Base class to be used for all simple modifications that can be applied to a DOMStoreTransaction
*/
/**
* Base class to be used for all simple modifications that can be applied to a DOMStoreTransaction
*/
-public abstract class AbstractModification implements Modification,
- Serializable {
+public abstract class AbstractModification implements Modification {
+
+ private YangInstanceIdentifier path;
+ private short version;
- private static final long serialVersionUID = 1638042650152084457L;
+ protected AbstractModification(short version) {
+ this.version = version;
+ }
- protected final InstanceIdentifier path;
+ protected AbstractModification(YangInstanceIdentifier path) {
+ this.path = path;
+ }
- protected
AbstractModification(
InstanceIdentifier path) {
+ protected
void setPath(Yang
InstanceIdentifier path) {
this.path = path;
}
this.path = path;
}
+
+ public YangInstanceIdentifier getPath() {
+ return path;
+ }
+
+ public short getVersion() {
+ return version;
+ }
}
}