Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simplify isolated leader check
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
messages
/
AbstractRaftRPC.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
index 33d8a6868680e03e09155332fc89b6089231bd19..0aabb49f6be4896738401499dbf54cc66720d7dc 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/AbstractRaftRPC.java
@@
-9,8
+9,10
@@
package org.opendaylight.controller.cluster.raft.messages;
public class AbstractRaftRPC implements RaftRPC {
package org.opendaylight.controller.cluster.raft.messages;
public class AbstractRaftRPC implements RaftRPC {
+ private static final long serialVersionUID = -6061342433962854822L;
+
// term
// term
- pr
otected
long term;
+ pr
ivate
long term;
protected AbstractRaftRPC(long term){
this.term = term;
protected AbstractRaftRPC(long term){
this.term = term;
@@
-20,11
+22,12
@@
public class AbstractRaftRPC implements RaftRPC {
public AbstractRaftRPC() {
}
public AbstractRaftRPC() {
}
+ @Override
public long getTerm() {
return term;
}
public long getTerm() {
return term;
}
- p
ublic
void setTerm(long term) {
+ p
rotected
void setTerm(long term) {
this.term = term;
}
}
this.term = term;
}
}