Class SOLRAdminClient

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationEventPublisherAware

    public class SOLRAdminClient
    extends Object
    implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.beans.factory.DisposableBean
    Provides an interface to the Solr admin APIs, used by the Alfresco Enterprise JMX layer. Also tracks whether Solr is available, sending Spring events when its availability changes.
    Since:
    4.0
    • Constructor Detail

      • SOLRAdminClient

        public SOLRAdminClient()
    • Method Detail

      • setSolrHost

        public void setSolrHost​(String solrHost)
      • setSolrPort

        public void setSolrPort​(String solrPort)
      • setSolrsslPort

        public void setSolrsslPort​(int solrSSLPort)
      • setSolrUser

        public void setSolrUser​(String solrUser)
      • setSolrPassword

        public void setSolrPassword​(String solrPassword)
      • setSolrConnectTimeout

        public void setSolrConnectTimeout​(String solrConnectTimeout)
      • setApplicationEventPublisher

        public void setApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
        Specified by:
        setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
      • setSolrPingCronExpression

        public void setSolrPingCronExpression​(String solrPingCronExpression)
      • setHttpClientFactory

        public void setHttpClientFactory​(org.alfresco.httpclient.HttpClientFactory httpClientFactory)
      • setBaseUrl

        public void setBaseUrl​(String baseUrl)
      • setScheduler

        public void setScheduler​(org.quartz.Scheduler scheduler)
        Parameters:
        scheduler - the scheduler to set
      • init

        public void init()
      • basicQuery

        public org.apache.solr.client.solrj.response.QueryResponse basicQuery​(org.apache.solr.common.params.ModifiableSolrParams params)
      • query

        public org.apache.solr.client.solrj.response.QueryResponse query​(org.apache.solr.common.params.ModifiableSolrParams params)
                                                                  throws org.apache.solr.client.solrj.SolrServerException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
      • getRegisteredCores

        public List<String> getRegisteredCores()
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception