public class ESRestClientFactory extends Object implements ESClientFactory
Constructor and Description |
---|
ESRestClientFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkConnection(org.elasticsearch.client.RestHighLevelClient client) |
protected void |
checkDeprecatedProperties() |
protected void |
checkDeprecatedProperty(String oldProp,
String newProp) |
ESClient |
create(ElasticSearchEmbeddedNode node,
ElasticSearchClientConfig config) |
protected ESClient |
createLocalRestClient(ElasticSearchEmbeddedServerConfig serverConfig) |
protected ESClient |
createRestClient(ElasticSearchClientConfig config) |
protected int |
getConnectTimeoutMs(ElasticSearchClientConfig config) |
protected org.apache.http.impl.client.BasicCredentialsProvider |
getCredentialProvider(ElasticSearchClientConfig config) |
protected int |
getSocketTimeoutMs(ElasticSearchClientConfig config) |
protected SSLContext |
getSslContext(ElasticSearchClientConfig config) |
protected KeyStore |
loadKeyStore(String path,
String password,
String type) |
public static final String DEFAULT_CONNECT_TIMEOUT_MS
public static final String DEFAULT_SOCKET_TIMEOUT_MS
public static final String CONNECTION_TIMEOUT_MS_OPT
public static final String SOCKET_TIMEOUT_MS_OPT
public static final String AUTH_USER_OPT
public static final String AUTH_PASSWORD_OPT
public static final String TRUST_STORE_PATH_OPT
public static final String TRUST_STORE_PASSWORD_OPT
public static final String TRUST_STORE_TYPE_OPT
public static final String KEY_STORE_PATH_OPT
public static final String KEY_STORE_PASSWORD_OPT
public static final String KEY_STORE_TYPE_OPT
@Deprecated public static final String DEPRECATED_TRUST_STORE_PATH_OPT
TRUST_STORE_PATH_OPT
instead@Deprecated public static final String DEPRECATED_TRUST_STORE_PASSWORD_OPT
TRUST_STORE_PATH_OPT
instead@Deprecated public static final String DEPRECATED_TRUST_STORE_TYPE_OPT
TRUST_STORE_PATH_OPT
insteadprotected static final String DEPRECATED_ES_TRUST_STORE_PATH_PROP
protected static final String DEPRECATED_ES_TRUST_STORE_PASSWORD_PROP
protected static final String DEPRECATED_ES_TRUST_STORE_TYPE_PROP
protected static final String ES_TRUST_STORE_PATH_PROP
protected static final String ES_TRUST_STORE_PASSWORD_PROP
protected static final String ES_TRUST_STORE_TYPE_PROP
public ESRestClientFactory()
public ESClient create(ElasticSearchEmbeddedNode node, ElasticSearchClientConfig config)
create
in interface ESClientFactory
protected ESClient createLocalRestClient(ElasticSearchEmbeddedServerConfig serverConfig)
protected ESClient createRestClient(ElasticSearchClientConfig config)
protected org.apache.http.impl.client.BasicCredentialsProvider getCredentialProvider(ElasticSearchClientConfig config)
protected SSLContext getSslContext(ElasticSearchClientConfig config)
protected void checkDeprecatedProperties()
protected void checkDeprecatedProperty(String oldProp, String newProp)
protected KeyStore loadKeyStore(String path, String password, String type) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
protected int getConnectTimeoutMs(ElasticSearchClientConfig config)
protected int getSocketTimeoutMs(ElasticSearchClientConfig config)
protected void checkConnection(org.elasticsearch.client.RestHighLevelClient client)
Copyright © 2019 Nuxeo. All rights reserved.