Class OpenSearchClusterConfig
java.lang.Object
org.craftercms.deployer.utils.opensearch.legacy.OpenSearchClusterConfig
Holds the configuration for a single OpenSearch cluster
- Since:
- 3.1.5
- Author:
- joseross
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
final int
final boolean
final String
The password to connect to the clusterfinal int
final int
final String[]
The list of urls to connect to the clusterfinal String
The username to connect to the cluster -
Constructor Summary
ConstructorDescriptionOpenSearchClusterConfig
(org.apache.commons.configuration2.HierarchicalConfiguration<?> config) OpenSearchClusterConfig
(org.apache.commons.configuration2.HierarchicalConfiguration<?> config, String username, String password, int connectTimeout, int socketTimeout, int threadCount, boolean keepAlive) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.RestHighLevelClient
Returns a client matching the current configuration of the cluster
-
Field Details
-
CONFIG_KEY_URLS
- See Also:
-
CONFIG_KEY_USERNAME
- See Also:
-
CONFIG_KEY_PASSWORD
- See Also:
-
CONFIG_KEY_TIMEOUT_CONNECT
- See Also:
-
CONFIG_KEY_TIMEOUT_SOCKET
- See Also:
-
CONFIG_KEY_THREADS
- See Also:
-
CONFIG_KEY_KEEP_ALIVE
- See Also:
-
urls
The list of urls to connect to the cluster -
username
The username to connect to the cluster -
password
The password to connect to the cluster -
connectTimeout
public final int connectTimeout -
socketTimeout
public final int socketTimeout -
threadCount
public final int threadCount -
keepAlive
public final boolean keepAlive
-
-
Constructor Details
-
OpenSearchClusterConfig
public OpenSearchClusterConfig() -
OpenSearchClusterConfig
public OpenSearchClusterConfig(org.apache.commons.configuration2.HierarchicalConfiguration<?> config) -
OpenSearchClusterConfig
-
-
Method Details
-
buildClient
public org.opensearch.client.RestHighLevelClient buildClient()Returns a client matching the current configuration of the cluster
-