use of org.apache.stanbol.commons.solr.managed.IndexMetadata in project stanbol by apache.
the class ConfiguredSolrCoreTracker method unbindManagedSolrServer.
protected void unbindManagedSolrServer(ManagedSolrServer managedSolrServer) {
if (this.managedSolrServer == managedSolrServer || solrCoreId != null) {
IndexReference indexReference = IndexReference.parse(solrCoreId);
if (!indexReference.checkServer(managedSolrServer.getServerName())) {
return;
}
String indexName = indexReference.getIndex();
IndexMetadata indexMetadata = managedSolrServer.getIndexMetadata(indexName);
if (indexMetadata != null && indexMetadata.isActive()) {
managedSolrServer.deactivateIndex(indexName);
}
this.managedSolrServer = null;
}
}
Aggregations