Class ShardSnapshotState
java.lang.Object
org.opendaylight.controller.cluster.datastore.persisted.ShardSnapshotState
- All Implemented Interfaces:
Serializable
,Snapshot.State
Encapsulates the snapshot State for a Shard.
- Author:
- Thomas Pantelis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionShardSnapshotState
(@NonNull ShardDataTreeSnapshot snapshot) ShardSnapshotState
(@NonNull ShardDataTreeSnapshot snapshot, boolean migrated) -
Method Summary
Modifier and TypeMethodDescription@NonNull ShardDataTreeSnapshot
boolean
Indicate whether the snapshot requires migration, i.e.
-
Constructor Details
-
ShardSnapshotState
-
ShardSnapshotState
-
-
Method Details
-
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 interfaceSnapshot.State
- Returns:
- True if complete recovery based upon this snapshot should trigger a new snapshot.
-