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 6540: EOS - Rework behavior of onPeerDown
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
RaftActorRecoveryCohort.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java
index a9f00aa80bcb93621d6f1ef3fadb4695dbe3b8c5..30e27e17fe4d483f872ae9e71dc6ae289b65cf83 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java
@@
-7,6
+7,7
@@
*/
package org.opendaylight.controller.cluster.raft;
*/
package org.opendaylight.controller.cluster.raft;
+import javax.annotation.Nullable;
import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
/**
import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
/**
@@
-42,4
+43,12
@@
public interface RaftActorRecoveryCohort {
* log entries. This method is called after {@link #appendRecoveredLogEntry}.
*/
void applyCurrentLogRecoveryBatch();
* log entries. This method is called after {@link #appendRecoveredLogEntry}.
*/
void applyCurrentLogRecoveryBatch();
+
+ /**
+ * Returns the state snapshot to restore from on recovery.
+ *
+ * @return the snapshot bytes or null if there's no snapshot to restore
+ */
+ @Nullable
+ byte[] getRestoreFromSnapshot();
}
}