Class OpenSearchClientFactoryBean

java.lang.Object
org.opensearch.data.client.osc.OpenSearchClientFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>, org.springframework.beans.factory.InitializingBean

public class OpenSearchClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
OpenSearchClientFactoryBean
Since:
5.0
  • Constructor Details

    • OpenSearchClientFactoryBean

      public OpenSearchClientFactoryBean()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getObject

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

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

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
    • buildClient

      protected void buildClient() throws Exception
      Throws:
      Exception
    • setHosts

      public void setHosts(String hosts)
    • getHosts

      public String getHosts()