Search in sources :

Example 1 with FrontendClientMetadata

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);
    }
}
Also used : FrontendClientMetadata(org.opendaylight.controller.cluster.datastore.persisted.FrontendClientMetadata) FrontendIdentifier(org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier)

Aggregations

FrontendIdentifier (org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier)1 FrontendClientMetadata (org.opendaylight.controller.cluster.datastore.persisted.FrontendClientMetadata)1