Search in sources :

Example 1 with ClusterMetadataProvider

use of org.onosproject.cluster.ClusterMetadataProvider in project onos by opennetworkinglab.

the class ClusterMetadataManager method setClusterMetadata.

@Override
public void setClusterMetadata(ClusterMetadata metadata) {
    checkNotNull(metadata, "Cluster metadata cannot be null");
    ClusterMetadataProvider primaryProvider = getPrimaryProvider();
    if (primaryProvider == null) {
        throw new IllegalStateException("Missing primary provider. Cannot update cluster metadata");
    }
    primaryProvider.setClusterMetadata(metadata);
}
Also used : ClusterMetadataProvider(org.onosproject.cluster.ClusterMetadataProvider)

Aggregations

ClusterMetadataProvider (org.onosproject.cluster.ClusterMetadataProvider)1