Package org.nuxeo.elasticsearch.client
Class ESRestClientFactory
java.lang.Object
org.nuxeo.elasticsearch.client.ESRestClientFactory
- All Implemented Interfaces:
ESClientFactory
- Since:
- 9.3
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
protected static final String
protected static final String
protected static final String
static final String
Deprecated.static final String
Deprecated.since 10.3, misnamed, useTRUST_STORE_PATH_OPT
insteadstatic final String
Deprecated.since 10.3, misnamed, useTRUST_STORE_PATH_OPT
insteadprotected static final String
protected static final String
protected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkConnection
(org.opensearch.client.RestHighLevelClient client) protected void
protected void
checkDeprecatedProperty
(String oldProp, String newProp) create
(ElasticSearchEmbeddedNode node, ElasticSearchClientConfig config) protected ESClient
protected ESClient
protected int
protected org.apache.http.impl.client.BasicCredentialsProvider
protected int
protected SSLContext
protected KeyStore
loadKeyStore
(String path, String password, String type)
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT_MS
- See Also:
-
DEFAULT_SOCKET_TIMEOUT_MS
- See Also:
-
CONNECTION_TIMEOUT_MS_OPT
- See Also:
-
SOCKET_TIMEOUT_MS_OPT
- See Also:
-
AUTH_USER_OPT
- See Also:
-
AUTH_PASSWORD_OPT
- See Also:
-
TRUST_STORE_PATH_OPT
- Since:
- 10.3
- See Also:
-
TRUST_STORE_PASSWORD_OPT
- Since:
- 10.3
- See Also:
-
TRUST_STORE_TYPE_OPT
- Since:
- 10.3
- See Also:
-
KEY_STORE_PATH_OPT
- Since:
- 10.3
- See Also:
-
KEY_STORE_PASSWORD_OPT
- Since:
- 10.3
- See Also:
-
KEY_STORE_TYPE_OPT
- Since:
- 10.3
- See Also:
-
DEPRECATED_TRUST_STORE_PATH_OPT
Deprecated.since 10.3, misnamed, useTRUST_STORE_PATH_OPT
instead- See Also:
-
DEPRECATED_TRUST_STORE_PASSWORD_OPT
Deprecated.since 10.3, misnamed, useTRUST_STORE_PATH_OPT
instead- See Also:
-
DEPRECATED_TRUST_STORE_TYPE_OPT
Deprecated.since 10.3, misnamed, useTRUST_STORE_PATH_OPT
instead- Since:
- 9.10-HF01
- See Also:
-
SSL_CERTIFICATE_VERIFICATION_OPT
- Since:
- 2021.37
- See Also:
-
DEPRECATED_ES_TRUST_STORE_PATH_PROP
- See Also:
-
DEPRECATED_ES_TRUST_STORE_PASSWORD_PROP
- See Also:
-
DEPRECATED_ES_TRUST_STORE_TYPE_PROP
- See Also:
-
ES_TRUST_STORE_PATH_PROP
- See Also:
-
ES_TRUST_STORE_PASSWORD_PROP
- See Also:
-
ES_TRUST_STORE_TYPE_PROP
- See Also:
-
-
Constructor Details
-
ESRestClientFactory
public ESRestClientFactory()
-
-
Method Details
-
create
- Specified by:
create
in interfaceESClientFactory
-
createLocalRestClient
-
createRestClient
-
getCredentialProvider
protected org.apache.http.impl.client.BasicCredentialsProvider getCredentialProvider(ElasticSearchClientConfig config) -
getSslContext
-
checkDeprecatedProperties
protected void checkDeprecatedProperties() -
checkDeprecatedProperty
-
loadKeyStore
protected KeyStore loadKeyStore(String path, String password, String type) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
getConnectTimeoutMs
-
getSocketTimeoutMs
-
checkConnection
protected void checkConnection(org.opensearch.client.RestHighLevelClient client)
-
TRUST_STORE_PATH_OPT
instead