Class OpenSearchRestClientFactory
java.lang.Object
org.nuxeo.runtime.opensearch1.client.OpenSearchRestClientFactory
- All Implemented Interfaces:
OpenSearchClientFactory
- Since:
- 9.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkConnection
(String clientId, org.opensearch.client.RestHighLevelClient client) create
(OpenSearchClientConfig config) protected OpenSearchClient
protected org.apache.http.impl.client.BasicCredentialsProvider
protected SSLContext
getSslContext
(OpenSearchClientConfig config) protected KeyStore
loadKeyStore
(OpenSearchClientConfig.Store storeConfig)
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT
-
DEFAULT_SOCKET_TIMEOUT
-
-
Constructor Details
-
OpenSearchRestClientFactory
public OpenSearchRestClientFactory()
-
-
Method Details
-
create
- Specified by:
create
in interfaceOpenSearchClientFactory
-
createRestClient
-
getCredentialProvider
protected org.apache.http.impl.client.BasicCredentialsProvider getCredentialProvider(OpenSearchClientConfig config) -
getSslContext
-
loadKeyStore
protected KeyStore loadKeyStore(OpenSearchClientConfig.Store storeConfig) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityException
IOException
-
checkConnection
-