Search in sources :

Example 1 with ClusterMetadataProviderService

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;
}
Also used : ClusterMetadataProviderService(org.onosproject.cluster.ClusterMetadataProviderService)

Aggregations

ClusterMetadataProviderService (org.onosproject.cluster.ClusterMetadataProviderService)1