Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move null check from getTotalMemory()
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
SnapshotState.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SnapshotState.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SnapshotState.java
index 3167596cc38ce56c55e67200531ce9afea93b49b..5d1304fe752222214a82b9d877da996dc517feb4 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SnapshotState.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SnapshotState.java
@@
-8,12
+8,11
@@
package org.opendaylight.controller.cluster.raft;
package org.opendaylight.controller.cluster.raft;
-import org.opendaylight.controller.cluster.raft.b
ehaviors.RaftActorBehavior
;
+import org.opendaylight.controller.cluster.raft.b
ase.messages.ApplySnapshot
;
public interface SnapshotState {
/**
public interface SnapshotState {
/**
- * Should return true when a snapshot is being captured
- * @return
+ * @return true when a snapshot is being captured
*/
boolean isCapturing();
*/
boolean isCapturing();
@@
-43,7
+42,7
@@
public interface SnapshotState {
*
* @param snapshot the Snapshot to apply.
*/
*
* @param snapshot the Snapshot to apply.
*/
- void apply(Snapshot snapshot);
+ void apply(
Apply
Snapshot snapshot);
/**
* Persist the snapshot
/**
* Persist the snapshot
@@
-52,14
+51,14
@@
public interface SnapshotState {
* @param currentBehavior
* @param totalMemory
*/
* @param currentBehavior
* @param totalMemory
*/
- void persist(byte[] snapshotBytes,
RaftActorBehavior currentBehavior,
long totalMemory);
+ void persist(byte[] snapshotBytes, long totalMemory);
/**
* Commit the snapshot by trimming the log
*
* @param sequenceNumber
*/
/**
* Commit the snapshot by trimming the log
*
* @param sequenceNumber
*/
- void commit(long sequenceNumber
, RaftActorBehavior currentBehavior
);
+ void commit(long sequenceNumber);
/**
* Rollback the snapshot
/**
* Rollback the snapshot
@@
-72,5
+71,5
@@
public interface SnapshotState {
* @param desiredTrimIndex
* @return the actual trim index
*/
* @param desiredTrimIndex
* @return the actual trim index
*/
- long trimLog(long desiredTrimIndex
, RaftActorBehavior currentBehavior
);
+ long trimLog(long desiredTrimIndex);
}
}