public class ElasticsearchConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_KEY_GLOBAL_CLUSTER |
static String |
CONFIG_KEY_INDEX_SETTINGS |
static String |
CONFIG_KEY_KEY |
static String |
CONFIG_KEY_READ_CLUSTER |
static String |
CONFIG_KEY_VALUE |
static String |
CONFIG_KEY_WRITE_CLUSTERS |
ElasticsearchClusterConfig |
globalCluster
The global cluster, used for connecting to a single cluster for read & write operations
|
Map<String,String> |
indexSettings |
ElasticsearchClusterConfig |
readCluster
The read cluster, used for connecting to multiple clusters
|
List<ElasticsearchClusterConfig> |
writeClusters
The write clusters, used for connecting to multiple clusters
|
Constructor and Description |
---|
ElasticsearchConfig(org.apache.commons.configuration2.HierarchicalConfiguration<?> config) |
Modifier and Type | Method and Description |
---|---|
boolean |
useSingleCluster()
Indicates if a single cluster should be used, only if any of the read or write clusters is missing
|
public static final String CONFIG_KEY_GLOBAL_CLUSTER
public static final String CONFIG_KEY_READ_CLUSTER
public static final String CONFIG_KEY_WRITE_CLUSTERS
public static final String CONFIG_KEY_INDEX_SETTINGS
public static final String CONFIG_KEY_KEY
public static final String CONFIG_KEY_VALUE
public final ElasticsearchClusterConfig globalCluster
public final ElasticsearchClusterConfig readCluster
public final List<ElasticsearchClusterConfig> writeClusters
Copyright © 2023. All rights reserved.