Package org.alfresco.repo.solr
Class SOLRAdminClient
- java.lang.Object
-
- org.alfresco.repo.solr.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 Summary
Constructors Constructor Description SOLRAdminClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.client.solrj.response.QueryResponsebasicQuery(org.apache.solr.common.params.ModifiableSolrParams params)voiddestroy()List<String>getRegisteredCores()voidinit()org.apache.solr.client.solrj.response.QueryResponsequery(org.apache.solr.common.params.ModifiableSolrParams params)voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)voidsetBaseUrl(String baseUrl)voidsetHttpClientFactory(org.alfresco.httpclient.HttpClientFactory httpClientFactory)voidsetScheduler(org.quartz.Scheduler scheduler)voidsetSolrConnectTimeout(String solrConnectTimeout)voidsetSolrHost(String solrHost)voidsetSolrPassword(String solrPassword)voidsetSolrPingCronExpression(String solrPingCronExpression)voidsetSolrPort(String solrPort)voidsetSolrsslPort(int solrSSLPort)voidsetSolrUser(String solrUser)
-
-
-
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:
setApplicationEventPublisherin interfaceorg.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
-
-