Package org.alfresco.solr.client
Class SOLRAPIClientFactory
java.lang.Object
org.alfresco.solr.client.SOLRAPIClientFactory
This factory encapsulates the creation of a SOLRAPIClient and the management of that resource.
- Author:
- Ahmed Owian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()protected org.alfresco.httpclient.AlfrescoHttpClientgetRepoClient(org.alfresco.encryption.KeyResourceLoader keyResourceLoader) getSOLRAPIClient(Properties props, org.alfresco.encryption.KeyResourceLoader keyResourceLoader, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO) Creates the SOLRAPIClient or gets it from a pool
-
Constructor Details
-
SOLRAPIClientFactory
public SOLRAPIClientFactory()
-
-
Method Details
-
close
public static void close() -
getSOLRAPIClient
public SOLRAPIClient getSOLRAPIClient(Properties props, org.alfresco.encryption.KeyResourceLoader keyResourceLoader, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO) Creates the SOLRAPIClient or gets it from a pool- Parameters:
props- solrcore.properties in the/conf directory keyResourceLoader- reads encryption key resourcesdictionaryService- represents the Repository Data DictionarynamespaceDAO- allows retrieving and creating Namespace definitions- Returns:
- an instance of SOLRAPIClient
-
getRepoClient
protected org.alfresco.httpclient.AlfrescoHttpClient getRepoClient(org.alfresco.encryption.KeyResourceLoader keyResourceLoader)
-