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
SpringFactoryBeanfor getting theOpenSearchClientsingleton instance.
-
-
Field Summary
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description OpenSearchClientFactoryBean(List<org.apache.http.HttpHost> hosts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()StringgetApiKeyId()StringgetApiKeySecret()org.opensearch.client.opensearch.OpenSearchClientgetObject()Class<?>getObjectType()StringgetServiceToken()voidsetApiKeyId(String apiKeyId)voidsetApiKeySecret(String apiKeySecret)voidsetPassword(String password)voidsetServiceToken(String serviceToken)voidsetUsername(String username)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
-
-
-
Constructor Detail
-
OpenSearchClientFactoryBean
public OpenSearchClientFactoryBean(List<org.apache.http.HttpHost> hosts)
-
-
Method Detail
-
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() throws Exception- Specified by:
getObjectin interfaceFactoryBean<org.opensearch.client.opensearch.OpenSearchClient>- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceDisposableBean- Throws:
Exception
-
-