public class ESClientInitializationServiceImpl extends Object implements ESClientInitializationService
Modifier and Type | Field and Description |
---|---|
protected String |
password |
protected String |
sslKeystorePassword |
protected String |
sslKeystorePath |
protected String |
username |
Constructor and Description |
---|
ESClientInitializationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Get password if authentication is required
|
String |
getSslKeystorePassword()
Get ssl keystore password
|
String |
getSslKeystorePath()
Get ssl keystore path
|
String |
getUsername()
Get username if authentication is required
|
org.elasticsearch.client.transport.TransportClient |
initializeClient(org.elasticsearch.common.settings.Settings settings)
Initialize Elasticsearch client
|
protected org.elasticsearch.client.transport.TransportClient.Builder |
initializeClientBuilder() |
org.elasticsearch.common.settings.Settings |
initializeSettings(ElasticSearchRemoteConfig config)
Initialize Elasticsearch client settings
|
protected org.elasticsearch.common.settings.Settings.Builder |
initializeSettingsBuilder(ElasticSearchRemoteConfig config) |
void |
setPassword(String password)
Set password for authentication
|
void |
setSslKeystorePassword(String sslKeystorePassword)
Set ssl keystore password
|
void |
setSslKeystorePath(String sslKeystorePath)
Set ssl keystore path
|
void |
setUsername(String username)
Set username for authentication
|
protected String sslKeystorePath
protected String sslKeystorePassword
public ESClientInitializationServiceImpl()
public org.elasticsearch.common.settings.Settings initializeSettings(ElasticSearchRemoteConfig config)
ESClientInitializationService
initializeSettings
in interface ESClientInitializationService
config
- the cluster configurationpublic org.elasticsearch.client.transport.TransportClient initializeClient(org.elasticsearch.common.settings.Settings settings)
ESClientInitializationService
initializeClient
in interface ESClientInitializationService
settings
- the client settingspublic String getUsername()
ESClientInitializationService
getUsername
in interface ESClientInitializationService
public void setUsername(String username)
ESClientInitializationService
setUsername
in interface ESClientInitializationService
username
- the usernamepublic String getPassword()
ESClientInitializationService
getPassword
in interface ESClientInitializationService
public void setPassword(String password)
ESClientInitializationService
setPassword
in interface ESClientInitializationService
password
- the passwordpublic String getSslKeystorePath()
ESClientInitializationService
getSslKeystorePath
in interface ESClientInitializationService
public void setSslKeystorePath(String sslKeystorePath)
ESClientInitializationService
setSslKeystorePath
in interface ESClientInitializationService
sslKeystorePath
- the keystore pathpublic String getSslKeystorePassword()
ESClientInitializationService
getSslKeystorePassword
in interface ESClientInitializationService
public void setSslKeystorePassword(String sslKeystorePassword)
ESClientInitializationService
setSslKeystorePassword
in interface ESClientInitializationService
sslKeystorePassword
- the keystore passwordprotected org.elasticsearch.common.settings.Settings.Builder initializeSettingsBuilder(ElasticSearchRemoteConfig config)
protected org.elasticsearch.client.transport.TransportClient.Builder initializeClientBuilder()
Copyright © 2017 Nuxeo. All rights reserved.