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
SpringFactoryBean
for getting theOpenSearchClient
singleton 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 void
destroy()
String
getApiKeyId()
String
getApiKeySecret()
org.opensearch.client.opensearch.OpenSearchClient
getObject()
Class<?>
getObjectType()
String
getServiceToken()
void
setApiKeyId(String apiKeyId)
void
setApiKeySecret(String apiKeySecret)
void
setPassword(String password)
void
setServiceToken(String serviceToken)
void
setUsername(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:
getObject
in interfaceFactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-
-