Package org.alfresco.solr.client
Class SOLRAPIClientFactory
- java.lang.Object
-
- org.alfresco.solr.client.SOLRAPIClientFactory
-
public class SOLRAPIClientFactory extends java.lang.Object
This factory encapsulates the creation of a SOLRAPIClient and the management of that resource.- Author:
- Ahmed Owian
-
-
Constructor Summary
Constructors Constructor Description SOLRAPIClientFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
close()
protected org.alfresco.httpclient.AlfrescoHttpClient
getRepoClient(org.alfresco.encryption.KeyResourceLoader keyResourceLoader)
SOLRAPIClient
getSOLRAPIClient(java.util.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
-
-
-
Method Detail
-
close
public static void close()
-
getSOLRAPIClient
public SOLRAPIClient getSOLRAPIClient(java.util.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)
-
-