Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Dynamically update DatastoreContext properties
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
RaftActorContext.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContext.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContext.java
index ae9431a43acf576f2769672b49d3ce234014e3c0..9d391a1588ba31c575125572db2ef642e3e14e58 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContext.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorContext.java
@@
-12,9
+12,8
@@
import akka.actor.ActorRef;
import akka.actor.ActorSelection;
import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.actor.ActorSelection;
import akka.actor.ActorSystem;
import akka.actor.Props;
-import akka.event.LoggingAdapter;
-
import java.util.Map;
import java.util.Map;
+import org.slf4j.Logger;
/**
* The RaftActorContext contains that portion of the RaftActors state that
/**
* The RaftActorContext contains that portion of the RaftActors state that
@@
-85,6
+84,12
@@
public interface RaftActorContext {
*/
void setLastApplied(long lastApplied);
*/
void setLastApplied(long lastApplied);
+ /**
+ *
+ * @param replicatedLog
+ */
+ void setReplicatedLog(ReplicatedLog replicatedLog);
+
/**
* @return A representation of the log
*/
/**
* @return A representation of the log
*/
@@
-100,7
+105,7
@@
public interface RaftActorContext {
*
* @return
*/
*
* @return
*/
- Logg
ingAdapt
er getLogger();
+ Logger getLogger();
/**
* Get a mapping of peerId's to their addresses
/**
* Get a mapping of peerId's to their addresses
@@
-131,7
+136,7
@@
public interface RaftActorContext {
*
* @param name
*/
*
* @param name
*/
-
public
void removePeer(String name);
+ void removePeer(String name);
/**
* Given a peerId return the corresponding actor
/**
* Given a peerId return the corresponding actor
@@
-155,4
+160,14
@@
public interface RaftActorContext {
* @param peerAddress
*/
void setPeerAddress(String peerId, String peerAddress);
* @param peerAddress
*/
void setPeerAddress(String peerId, String peerAddress);
+
+ /**
+ * @return ConfigParams
+ */
+ ConfigParams getConfigParams();
+
+ void setSnapshotCaptureInitiated(boolean snapshotCaptureInitiated);
+
+ boolean isSnapshotCaptureInitiated();
+
}
}