Class OpenSearchClusterConfig

java.lang.Object
org.craftercms.deployer.utils.opensearch.OpenSearchClusterConfig

public class OpenSearchClusterConfig extends Object
Holds the configuration for a single OpenSearch cluster
Since:
3.1.5
Author:
joseross
  • Field Details

    • CONFIG_KEY_URLS

      public static final String CONFIG_KEY_URLS
      See Also:
    • CONFIG_KEY_USERNAME

      public static final String CONFIG_KEY_USERNAME
      See Also:
    • CONFIG_KEY_PASSWORD

      public static final String CONFIG_KEY_PASSWORD
      See Also:
    • CONFIG_KEY_TIMEOUT_CONNECT

      public static final String CONFIG_KEY_TIMEOUT_CONNECT
      See Also:
    • CONFIG_KEY_TIMEOUT_SOCKET

      public static final String CONFIG_KEY_TIMEOUT_SOCKET
      See Also:
    • CONFIG_KEY_THREADS

      public static final String CONFIG_KEY_THREADS
      See Also:
    • CONFIG_KEY_KEEP_ALIVE

      public static final String CONFIG_KEY_KEEP_ALIVE
      See Also:
    • urls

      public final String[] urls
      The list of urls to connect to the cluster
    • username

      public final String username
      The username to connect to the cluster
    • password

      public final String 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

      public OpenSearchClusterConfig(org.apache.commons.configuration2.HierarchicalConfiguration<?> config, String username, String password, int connectTimeout, int socketTimeout, int threadCount, boolean keepAlive)
  • Method Details

    • buildClient

      public org.opensearch.client.opensearch.OpenSearchClient buildClient()
      Returns a client matching the current configuration of the cluster