Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix ApplyState elapsed time check
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
FollowerLogInformation.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
index b2173c2baf3d9caec83207c28a383590aea61640..4367a7a151ff729bcac7de25f4fbeaf54b114089 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
@@
-12,12
+12,6
@@
package org.opendaylight.controller.cluster.raft;
*/
public interface FollowerLogInformation {
*/
public interface FollowerLogInformation {
- enum FollowerState {
- VOTING,
- NON_VOTING,
- VOTING_NOT_INITIALIZED
- };
-
/**
* Increment the value of the nextIndex
*
/**
* Increment the value of the nextIndex
*
@@
-116,18
+110,12
@@
public interface FollowerLogInformation {
void setPayloadVersion(short payloadVersion);
/**
void setPayloadVersion(short payloadVersion);
/**
- * Sets the state of the follower.
- */
- void setFollowerState(FollowerState state);
-
- /**
- * @return the state of the follower.
+ * @return the raft version of the follower.
*/
*/
-
FollowerState getFollowerState
();
+
short getRaftVersion
();
/**
/**
- * @return true if the follower is in a state where it can participate in leader elections and
- * commitment consensus.
+ * Sets the raft version of the follower.
*/
*/
-
boolean canParticipateInConsensus(
);
+
void setRaftVersion(short payloadVersion
);
}
}