public class ESRestClientFactory extends Object implements ESClientFactory
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_PASSWORD_OPT |
static String |
AUTH_USER_OPT |
static String |
CONNECTION_TIMEOUT_MS_OPT |
static String |
DEFAULT_CONNECT_TIMEOUT_MS |
static String |
DEFAULT_SOCKET_TIMEOUT_MS |
static String |
KEYSTORE_PASSWORD_OPT |
static String |
KEYSTORE_PATH_OPT |
static String |
SOCKET_TIMEOUT_MS_OPT |
Constructor and Description |
---|
ESRestClientFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkConnection(org.elasticsearch.client.RestHighLevelClient client) |
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) |
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 KEYSTORE_PATH_OPT
public static final String KEYSTORE_PASSWORD_OPT
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 int getConnectTimeoutMs(ElasticSearchClientConfig config)
protected int getSocketTimeoutMs(ElasticSearchClientConfig config)
protected void checkConnection(org.elasticsearch.client.RestHighLevelClient client)
Copyright © 2018 Nuxeo. All rights reserved.