@Unstable
@Role
public interface SolrVocabularyResourceManager
| Modifier and Type | Method and Description |
|---|---|
void |
createReplacementCore(Vocabulary vocabulary)
Copy the Solr configuration file in a separate temporary directory, then register this temporary core with the
Solr server.
|
void |
discardReplacementCore(Vocabulary vocabulary)
Delete the temporary core, if one was already created by
createReplacementCore(Vocabulary). |
org.apache.solr.client.solrj.SolrClient |
getReplacementSolrConnection(Vocabulary vocabulary)
Get the temporary Solr core used for a vocabulary during reindexing.
|
org.apache.solr.client.solrj.SolrClient |
getSolrConnection(Vocabulary vocabulary)
Get the Solr core used for a vocabulary.
|
org.xwiki.cache.Cache<VocabularyTerm> |
getTermCache(Vocabulary vocabulary)
Get the cache instance created for handling vocabulary terms.
|
void |
replaceCore(Vocabulary vocabulary)
Copy new index data from the temporary core to the main index location.
|
org.xwiki.cache.Cache<VocabularyTerm> getTermCache(Vocabulary vocabulary)
vocabulary - the target vocabularyorg.apache.solr.client.solrj.SolrClient getSolrConnection(Vocabulary vocabulary)
vocabulary - the target vocabularyvoid createReplacementCore(Vocabulary vocabulary) throws org.xwiki.component.phase.InitializationException
getReplacementSolrConnection(Vocabulary) during reindexing,
and then it can either be discarded with discardReplacementCore(Vocabulary), or take the place of the
official vocabulary index with replaceCore(Vocabulary).vocabulary - the target vocabularyorg.xwiki.component.phase.InitializationException - if the process failsvoid replaceCore(Vocabulary vocabulary) throws org.xwiki.component.phase.InitializationException
vocabulary - the target vocabularyorg.xwiki.component.phase.InitializationException - if the process failsorg.apache.solr.client.solrj.SolrClient getReplacementSolrConnection(Vocabulary vocabulary)
vocabulary - the identifier of the target vocabularyvoid discardReplacementCore(Vocabulary vocabulary)
createReplacementCore(Vocabulary). If no
temporary core was created, nothing happens.vocabulary - the target vocabularyCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.