Class SolrClientsWrapper

java.lang.Object
de.hybris.platform.solrfacetsearch.solr.impl.SolrClientsWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

public class SolrClientsWrapper extends Object implements Closeable
Container for Solr clients.
  • Constructor Details

    • SolrClientsWrapper

      public SolrClientsWrapper(SolrConfig solrConfig)
      Default constructor.
      Parameters:
      solrConfig - - the Solr configuration
  • Method Details

    • getConfigName

      public String getConfigName()
    • getConfigVersion

      public String getConfigVersion()
    • getSearchClient

      public CachedSolrClient getSearchClient()
    • setSearchClient

      public void setSearchClient(CachedSolrClient searchClient)
    • getIndexClient

      public CachedSolrClient getIndexClient()
    • setIndexClient

      public void setIndexClient(CachedSolrClient indexClient)
    • close

      public void close()
      Closes all SolrClient instances that it has reference to.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable