Skip to content

Package: DatastoreElasticsearchClientSettingsKey

DatastoreElasticsearchClientSettingsKey

nameinstructionbranchcomplexitylinemethod
DatastoreElasticsearchClientSettingsKey(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: 213 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 20 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 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.service.datastore.internal.setting;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16:
17: /**
18: * Datastore {@link org.eclipse.kapua.service.elasticsearch.client.ElasticsearchClient} setting keys.
19: *
20: * @since 1.3.0
21: */
22: public enum DatastoreElasticsearchClientSettingsKey implements SettingKey {
23:
24: /**
25: * {@link org.eclipse.kapua.service.elasticsearch.client.ElasticsearchClientProvider} implementation class.
26: *
27: * @since 1.3.0
28: */
29: PROVIDER("datastore.elasticsearch.provider"),
30: /**
31: * The name of the module which is managing the {@link org.eclipse.kapua.service.elasticsearch.client.ElasticsearchClient}.
32: *
33: * @since 1.3.0
34: */
35: MODULE("datastore.elasticsearch.module"),
36: /**
37: * Elasticsearch cluster name.
38: *
39: * @since 1.3.0
40: */
41: CLUSTER("datastore.elasticsearch.cluster"),
42: /**
43: * Elasticsearch nodes list.
44: *
45: * @since 1.3.0
46: */
47: NODES("datastore.elasticsearch.nodes"),
48: /**
49: * Elasticsearch Username.
50: *
51: * @since 1.3.0.
52: */
53: USERNAME("datastore.elasticsearch.username"),
54: /**
55: * Elasticsearch Password
56: *
57: * @since 1.3.0
58: */
59: PASSWORD("datastore.elasticsearch.password"),
60: /**
61: * Elasticsearch port.
62: *
63: * @since 1.3.0
64: */
65: PORT("datastore.elasticsearch.port"),
66: /**
67: * Wait between client reconnection task executions.
68: *
69: * @since 1.3.0
70: */
71: CLIENT_RECONNECTION_WAIT_BETWEEN_EXECUTIONS("datastore.elasticsearch.client.reconnection_wait_between_exec"),
72: /**
73: * Request query timeout.
74: *
75: * @since 1.3.0
76: */
77: REQUEST_QUERY_TIMEOUT("datastore.elasticsearch.request.query.timeout"),
78: /**
79: * Request scroll timeout.
80: *
81: * @since 1.3.0
82: */
83: REQUEST_SCROLL_TIMEOUT("datastore.elasticsearch.request.scroll.timeout"),
84: /**
85: * Elasticsearch max retry attempt (when a timeout occurred in the rest call).
86: *
87: * @since 1.3.0
88: */
89: REQUEST_RETRY_MAX("datastore.elasticsearch.request.retry.max"),
90: /**
91: * Elasticsearch max wait time between retry attempt (in milliseconds)
92: *
93: * @since 1.3.0
94: */
95: REQUEST_RETRY_WAIT("datastore.elasticsearch.request.retry.wait"),
96: /**
97: * Enable Elasticsearch client ssl connection (at the present only the rest client supports it)
98: *
99: * @since 1.3.0
100: */
101: SSL_ENABLED("datastore.elasticsearch.ssl.enabled"),
102:
103: /**
104: * Force Elastichsearch client to trust the server certificate on the ssl connection handshake so, if true, no check will be performed for the server certificate (at the present only the rest
105: * client supports it)
106: *
107: * @since 1.3.0
108: */
109: SSL_TRUST_SERVER_CERTIFICATE("datastore.elasticsearch.ssl.trust_server_certificate"),
110: /**
111: * Elastichsearch client key store password (at the present only the rest client supports it).
112: *
113: * @since 1.3.0
114: */
115: SSL_KEYSTORE_PASSWORD("datastore.elasticsearch.ssl.keystore.password"),
116: /**
117: * Elastichsearch client key store path (at the present only the rest client supports it).
118: *
119: * @since 1.3.0
120: */
121: SSL_KEYSTORE_PATH("datastore.elasticsearch.ssl.keystore.path"),
122: /**
123: * Set the keystore type.
124: *
125: * @since 1.3.0
126: */
127: SSL_KEYSTORE_TYPE("datastore.elasticsearch.ssl.keystore.type"),
128: /**
129: * Elastichsearch client trust store path (at the present only the rest client supports it)
130: *
131: * @since 1.3.0
132: */
133: SSL_TRUSTSTORE_PATH("datastore.elasticsearch.ssl.truststore.path"),
134: /**
135: * Elastichsearch client trust store password (at the present only the rest client supports it)
136: *
137: * @since 1.3.0
138: */
139: SSL_TRUSTSTORE_PASSWORD("datastore.elasticsearch.ssl.truststore.password");
140:
141: /**
142: * The key value in the configuration resources.
143: *
144: * @since 1.3.0
145: */
146: private final String key;
147:
148: /**
149: * Set up the {@code enum} with the key value provided
150: *
151: * @param key The value mapped by this {@link Enum} value
152: * @since 1.0.0
153: */
154: DatastoreElasticsearchClientSettingsKey(String key) {
155: this.key = key;
156: }
157:
158: /**
159: * Gets the key for this {@link DatastoreElasticsearchClientSettingsKey}
160: *
161: * @since 1.0.0
162: */
163: @Override
164: public String key() {
165: return key;
166: }
167: }