Skip to content

Package: EsMigratorSettingKey

EsMigratorSettingKey

nameinstructionbranchcomplexitylinemethod
EsMigratorSettingKey(String, int, String)
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
key()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 191 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 18 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2020, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.extras.esmigrator.settings;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16:
17: public enum EsMigratorSettingKey implements SettingKey {
18:
19: /**
20: * Address of the Elasticsearch Cluster
21: */
22: ELASTICSEARCH_CLUSTER_NODES("elasticsearch.cluster.nodes"),
23: /**
24: * Use HTTPS to interact with Elasticsearch
25: */
26: ELASTICSEARCH_CLUSTER_SSL("elasticsearch.cluster.ssl"),
27: /**
28: * Skip SSL Certificate Validation when interacting with Elasticsearch
29: */
30: ELASTICSEARCH_CLUSTER_SSL_IGNORE_CERTIFICATE("elasticsearch.cluster.ssl.ignore-certificate"),
31: /**
32: * Elasticsearch User
33: */
34: ELASTICSEARCH_USERNAME("elasticsearch.username"),
35: /**
36: * Elasticsearch Password
37: */
38: ELASTICSEARCH_PASSWORD("elasticsearch.password"),
39: /**
40: * Elasticsearch Socket Timeout
41: */
42: ELASTICSEARCH_SOCKET_TIMEOUT("elasticsearch.socket-timeout"),
43: /**
44: * Elasticsearch Batch Size
45: */
46: ELASTICSEARCH_BATCH_SIZE("elasticsearch.batch-size"),
47: /**
48: * Elasticsearch Task Pollint Interval
49: */
50: ELASTICSEARCH_TASK_POLLING_INTERVAL("elasticsearch.task-polling-interval"),
51:
52: /**
53: * The refresh interval for new indexes
54: */
55: DATASTORE_INDEX_REFRESH_INTERVAL("datastore.index.refresh_interval"),
56: /**
57: * The number of shards for new indexes
58: */
59: DATASTORE_INDEX_NUMBER_OF_SHARDS("datastore.index.number_of_shards"),
60: /**
61: * The number of replicas for new indexes
62: */
63: DATASTORE_INDEX_NUMBER_OF_REPLICAS("datastore.index.number_of_replicas"),
64: /**
65: * The prefix of all index names to operate on
66: */
67: DATASTORE_INDEX_PREFIX("datastore.index.prefix"),
68: /**
69: * Action performed on a migrated index (ES5 to ES6 only). Allowed values: delete, close, none
70: */
71: DATASTORE_INDEX_MIGRATION_COMPLETE_ACTION("datastore.index.migration-complete.action"),
72:
73: /**
74: * Report results to file
75: */
76: MIGRATOR_REPORT_TO_FILE("migrator.report-to-file"),
77: /**
78: * JDBC Connection String
79: */
80: MIGRATOR_JDBC_CONNECTION_STRING("migrator.jdbc.connection-string"),
81: /**
82: * JDBC Username
83: */
84: MIGRATOR_JDBC_USERNAME("migrator.jdbc.username"),
85: /**
86: * JDBC Password
87: */
88: MIGRATOR_JDBC_PASSWORD("migrator.jdbc.password");
89:
90:
91: private final String key;
92:
93: private EsMigratorSettingKey(String key) {
94: this.key = key;
95: }
96:
97: @Override
98: public String key() {
99: return key;
100: }
101:
102: }