Class SOLRAPIClientFactory

java.lang.Object
org.alfresco.solr.client.SOLRAPIClientFactory

public class SOLRAPIClientFactory extends Object
This factory encapsulates the creation of a SOLRAPIClient and the management of that resource.
Author:
Ahmed Owian
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    protected org.alfresco.httpclient.AlfrescoHttpClient
    getRepoClient(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 resources
      dictionaryService - represents the Repository Data Dictionary
      namespaceDAO - allows retrieving and creating Namespace definitions
      Returns:
      an instance of SOLRAPIClient
    • getRepoClient

      protected org.alfresco.httpclient.AlfrescoHttpClient getRepoClient(org.alfresco.encryption.KeyResourceLoader keyResourceLoader)