X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FRaftActorRecoveryCohort.java;h=e107be96c4652081c5c9e3876b6cce87b72c2505;hb=0f6310d201d4294b8c9e156ca1202e1bc52ce6eb;hp=9803f1eae72a95597a50823a3febb46c9350893b;hpb=2faf656bf68dd3843fd59520b27a7ec2abbdcc68;p=controller.git 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 9803f1eae7..e107be96c4 100644 --- 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,7 +7,6 @@ */ package org.opendaylight.controller.cluster.raft; -import javax.annotation.Nonnull; import javax.annotation.Nullable; import org.opendaylight.controller.cluster.raft.persisted.Snapshot; import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload; @@ -49,20 +48,10 @@ public interface RaftActorRecoveryCohort { void applyCurrentLogRecoveryBatch(); /** - * Returns the state snapshot to restore from on recovery. + * Returns the snapshot to restore from on recovery. * - * @return the snapshot bytes or null if there's no snapshot to restore + * @return the snapshot or null if there's no snapshot to restore */ @Nullable - byte[] getRestoreFromSnapshot(); - - /** - * This method is called during recovery to de-serialize a snapshot that was persisted in the pre-Carbon format. - * - * @param from the snaphot bytes - * @return a Snapshot.State instance - */ - @Deprecated - @Nonnull - Snapshot.State deserializePreCarbonSnapshot(byte [] from); + Snapshot getRestoreFromSnapshot(); }