use of org.onosproject.cluster.ClusterMetadataProviderService in project onos by opennetworkinglab.
the class ClusterMetadataManager method register.
@Override
public synchronized ClusterMetadataProviderService register(ClusterMetadataProvider provider) {
ClusterMetadataProviderService s = super.register(provider);
Set<String> providerNames = getProviders().stream().map(ProviderId::scheme).collect(Collectors.toSet());
if (providerNames.containsAll(requiredProviders)) {
// Safe to release Atomix now, cluster metadata is ready
clusterActivator.activateCluster();
}
return s;
}
Aggregations