Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fix ReplicationAndSnapshotsIntegrationTest failure"
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
messages
/
RequestVoteReply.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVoteReply.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVoteReply.java
index 816120cd93927f59ebed8bc74ea364d7061a0453..865d4c287bd7b63cd051ef46b8db2b959f69d4b1 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVoteReply.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/messages/RequestVoteReply.java
@@
-8,7
+8,8
@@
package org.opendaylight.controller.cluster.raft.messages;
package org.opendaylight.controller.cluster.raft.messages;
-public class RequestVoteReply extends AbstractRaftRPC{
+public class RequestVoteReply extends AbstractRaftRPC {
+ private static final long serialVersionUID = 8427899326488775660L;
// true means candidate received vot
private final boolean voteGranted;
// true means candidate received vot
private final boolean voteGranted;
@@
-18,6
+19,7
@@
public class RequestVoteReply extends AbstractRaftRPC{
this.voteGranted = voteGranted;
}
this.voteGranted = voteGranted;
}
+ @Override
public long getTerm() {
return term;
}
public long getTerm() {
return term;
}
@@
-25,4
+27,11
@@
public class RequestVoteReply extends AbstractRaftRPC{
public boolean isVoteGranted() {
return voteGranted;
}
public boolean isVoteGranted() {
return voteGranted;
}
+
+ @Override
+ public String toString() {
+ StringBuilder builder = new StringBuilder();
+ builder.append("RequestVoteReply [term=").append(term).append(", voteGranted=").append(voteGranted).append("]");
+ return builder.toString();
+ }
}
}