use of org.platformlayer.core.model.PlatformLayerKey in project platformlayer by platformlayer.
the class SolrTemplateData method getCluster.
public SolrCluster getCluster() throws OpsException {
if (cluster == null) {
cluster = OpsContext.get().getInstance(SolrCluster.class);
if (cluster == null) {
SolrServer server = getServer();
PlatformLayerKey parent = Tag.PARENT.findUnique(server);
if (parent != null) {
cluster = platformLayer.getItem(parent, SolrCluster.class);
}
}
}
return cluster;
}
Aggregations