/** * Getter for the {@link IndexReference} based on the {@link #getServerName()} and * {@link #getIndexName()} values * @return the {@link IndexReference} to the index described by this metadata */ public IndexReference getIndexReference(){ return new IndexReference(getServerName(), getIndexName()); } /**
/** * Getter for the {@link IndexReference} based on the {@link #getServerName()} and * {@link #getIndexName()} values * @return the {@link IndexReference} to the index described by this metadata */ public IndexReference getIndexReference(){ return new IndexReference(getServerName(), getIndexName()); } /**
if(isManagedIndex(entry.getKey())){ if(info.action == ManagedIndexState.ACTIVE){ log.info(" ... start to ACTIVATE Index {} on ManagedSolrServer",entry.getKey(),info.metadata.getServerName()); try { updateCore(info.metadata, info.ais); log.info(" ... Index {} on ManagedSolrServer {} is now ACTIVE",entry.getKey(),info.metadata.getServerName()); } catch (IOException e) { log.error("IOException while activating Index '"+ info.metadata.getServerName()+':'+ info.metadata.getIndexName()+"'!",e); info.metadata.setError(e); } catch (SAXException e) { log.error("SAXException while activating Index '"+ info.metadata.getServerName()+':'+ info.metadata.getIndexName()+"'!",e); info.metadata.setError(e); } catch (RuntimeException e) { log.error("Exception while activating Index '"+ info.metadata.getServerName()+':'+ info.metadata.getIndexName()+"'!",e); info.metadata.setError(e); log.info(" ... start to UNINITIALISE Index {} on ManagedSolrServer",entry.getKey(),info.metadata.getServerName()); try { uninitialiseCore(info.metadata,true); log.info(" ... Index {} on ManagedSolrServer {} is now UNINITIALISED",entry.getKey(),info.metadata.getServerName()); } catch (RuntimeException e) { log.error("Exception while uninitialising Index '"+ info.metadata.getServerName()+':'+
new Object[]{metadata.getIndexName(), metadata.getServerName(), desiredState.name(), metadata.getArchive()}); switch (desiredState) {
file+"'!"); if(!serverName.equals(props.getServerName())){ throw new IOException("The Name of the Referenced Solr server '"+ serverName+" does not correspond with the Server-Name value '"+ props.getServerName()+"' within the property file '"+ file+"'!");
new Object[]{metadata.getIndexName(), metadata.getServerName(), desiredState.name(), metadata.getArchive()}); switch (desiredState) {
if(isManagedIndex(entry.getKey())){ if(info.action == ManagedIndexState.ACTIVE){ log.info(" ... start to ACTIVATE Index {} on ManagedSolrServer",entry.getKey(),info.metadata.getServerName()); try { updateCore(info.metadata, info.ais); log.info(" ... Index {} on ManagedSolrServer {} is now ACTIVE",entry.getKey(),info.metadata.getServerName()); } catch (IOException e) { log.error("IOException while activating Index '"+ info.metadata.getServerName()+':'+ info.metadata.getIndexName()+"'!",e); info.metadata.setError(e); } catch (SAXException e) { log.error("SAXException while activating Index '"+ info.metadata.getServerName()+':'+ info.metadata.getIndexName()+"'!",e); info.metadata.setError(e); } catch (RuntimeException e) { log.error("Exception while activating Index '"+ info.metadata.getServerName()+':'+ info.metadata.getIndexName()+"'!",e); info.metadata.setError(e); log.info(" ... start to UNINITIALISE Index {} on ManagedSolrServer",entry.getKey(),info.metadata.getServerName()); try { uninitialiseCore(info.metadata,true); log.info(" ... Index {} on ManagedSolrServer {} is now UNINITIALISED",entry.getKey(),info.metadata.getServerName()); } catch (RuntimeException e) { log.error("Exception while uninitialising Index '"+ info.metadata.getServerName()+':'+
file+"'!"); if(!serverName.equals(props.getServerName())){ throw new IOException("The Name of the Referenced Solr server '"+ serverName+" does not correspond with the Server-Name value '"+ props.getServerName()+"' within the property file '"+ file+"'!");