package org.opendaylight.controller.cluster.raft;
-import org.opendaylight.controller.cluster.raft.behaviors.RaftActorBehavior;
+import org.opendaylight.controller.cluster.raft.base.messages.ApplySnapshot;
public interface SnapshotState {
/**
*
* @param snapshot the Snapshot to apply.
*/
- void apply(Snapshot snapshot);
+ void apply(ApplySnapshot snapshot);
/**
* Persist the snapshot
* @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
*/
- void commit(long sequenceNumber, RaftActorBehavior currentBehavior);
+ void commit(long sequenceNumber);
/**
* Rollback the snapshot
* @param desiredTrimIndex
* @return the actual trim index
*/
- long trimLog(long desiredTrimIndex, RaftActorBehavior currentBehavior);
+ long trimLog(long desiredTrimIndex);
}