use of org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot in project controller by opendaylight.
the class ShardManager method onRecoveryCompleted.
@SuppressWarnings("checkstyle:IllegalCatch")
private void onRecoveryCompleted() {
LOG.info("Recovery complete : {}", persistenceId());
if (currentSnapshot == null && restoreFromSnapshot != null && restoreFromSnapshot.getShardManagerSnapshot() != null) {
ShardManagerSnapshot snapshot = restoreFromSnapshot.getShardManagerSnapshot();
LOG.debug("{}: Restoring from ShardManagerSnapshot: {}", persistenceId(), snapshot);
applyShardManagerSnapshot(snapshot);
}
createLocalShards();
}
Aggregations