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 ShardDataTreeSnapshotbooleanIndicate whether the snapshot requires migration, i.e. a new snapshot should be created after recovery. 
- 
Constructor Details
- 
ShardSnapshotState
 - 
ShardSnapshotState
 
 - 
 - 
Method Details
- 
getSnapshot
 - 
needsMigration
public boolean needsMigration()Description copied from interface:Snapshot.StateIndicate 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:
 needsMigrationin interfaceSnapshot.State- Returns:
 - True if complete recovery based upon this snapshot should trigger a new snapshot.
 
 
 -