public class ElasticsearchClientFactoryBean extends Object implements FactoryBean<org.elasticsearch.client.RestHighLevelClient>, DisposableBean
FactoryBean
for getting the Elasticsearch's
RestHighLevelClient
singleton instance.OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
ElasticsearchClientFactoryBean(List<org.apache.http.HttpHost> hosts) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
String |
getApiKeyId() |
String |
getApiKeySecret() |
org.elasticsearch.client.RestHighLevelClient |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSingleton
public ElasticsearchClientFactoryBean(List<org.apache.http.HttpHost> hosts)
public void setUsername(String username)
public void setPassword(String password)
public String getServiceToken()
public void setServiceToken(String serviceToken)
public String getApiKeyId()
public void setApiKeyId(String apiKeyId)
public String getApiKeySecret()
public void setApiKeySecret(String apiKeySecret)
public org.elasticsearch.client.RestHighLevelClient getObject() throws Exception
getObject
in interface FactoryBean<org.elasticsearch.client.RestHighLevelClient>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.elasticsearch.client.RestHighLevelClient>
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.