Class ElasticsearchClientFactoryBean

java.lang.Object
org.apache.syncope.ext.elasticsearch.client.ElasticsearchClientFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean<co.elastic.clients.elasticsearch.ElasticsearchClient>

public class ElasticsearchClientFactoryBean extends Object implements FactoryBean<co.elastic.clients.elasticsearch.ElasticsearchClient>, DisposableBean
Spring FactoryBean for getting the ElasticsearchClient singleton instance.
  • Constructor Details

    • ElasticsearchClientFactoryBean

      public ElasticsearchClientFactoryBean(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 co.elastic.clients.elasticsearch.ElasticsearchClient getObject()
      Specified by:
      getObject in interface FactoryBean<co.elastic.clients.elasticsearch.ElasticsearchClient>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface FactoryBean<co.elastic.clients.elasticsearch.ElasticsearchClient>
    • destroy

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