use of org.opendaylight.controller.cluster.datastore.persisted.FrontendClientMetadata in project controller by opendaylight.
the class FrontendMetadata method doApplySnapshot.
@Override
void doApplySnapshot(final FrontendShardDataTreeSnapshotMetadata snapshot) {
LOG.debug("{}: applying snapshot {} over clients {}", shardName, snapshot, clients);
clients.clear();
for (FrontendClientMetadata m : snapshot.getClients()) {
LOG.debug("{}: applying metadata {}", shardName, m);
final FrontendClientMetadataBuilder b = new FrontendClientMetadataBuilder(shardName, m);
final FrontendIdentifier client = m.getIdentifier().getFrontendId();
LOG.debug("{}: client {} updated to {}", shardName, client, b);
clients.put(client, b);
}
}
Aggregations