Class OpenSearchClientFactoryBean

java.lang.Object
org.apache.syncope.ext.opensearch.client.OpenSearchClientFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>

public class OpenSearchClientFactoryBean extends Object implements FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>, DisposableBean
Spring FactoryBean for getting the OpenSearchClient singleton instance.
  • Constructor Details

    • OpenSearchClientFactoryBean

      public OpenSearchClientFactoryBean(List<org.apache.http.HttpHost> hosts)
  • Method Details

    • setUsername

      public void setUsername(String username)
    • setPassword

      public void setPassword(String password)
    • getServiceToken

      public String getServiceToken()
    • setServiceToken

      public void setServiceToken(String serviceToken)
    • getApiKeyId

      public String getApiKeyId()
    • setApiKeyId

      public void setApiKeyId(String apiKeyId)
    • getApiKeySecret

      public String getApiKeySecret()
    • setApiKeySecret

      public void setApiKeySecret(String apiKeySecret)
    • getObject

      public org.opensearch.client.opensearch.OpenSearchClient getObject()
      Specified by:
      getObject in interface FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface DisposableBean
      Throws:
      Exception