java.lang.Object
org.opendaylight.controller.cluster.datastore.persisted.ShardSnapshotState
All Implemented Interfaces:
Serializable, Snapshot.State

public class ShardSnapshotState extends Object implements Snapshot.State
Encapsulates the snapshot State for a Shard.
Author:
Thomas Pantelis
See Also:
  • Constructor Details

  • Method Details

    • getSnapshot

      public @NonNull ShardDataTreeSnapshot getSnapshot()
    • needsMigration

      public boolean needsMigration()
      Description copied from interface: Snapshot.State
      Indicate whether the snapshot requires migration, i.e. a new snapshot should be created after recovery. Default implementation returns false, i.e. do not re-snapshot.
      Specified by:
      needsMigration in interface Snapshot.State
      Returns:
      True if complete recovery based upon this snapshot should trigger a new snapshot.