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);
}
Aggregations