Skip to content

Package: DatastoreSettingsKey

DatastoreSettingsKey

nameinstructionbranchcomplexitylinemethod
DatastoreSettingsKey(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: 147 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 14 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 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: * Red Hat Inc
13: *******************************************************************************/
14: package org.eclipse.kapua.service.datastore.internal.setting;
15:
16: import org.eclipse.kapua.commons.setting.SettingKey;
17:
18: /**
19: * Datastore setting keys.
20: *
21: * @since 1.0
22: */
23: public enum DatastoreSettingsKey implements SettingKey {
24:
25: /**
26: * Local cache expire time
27: */
28: CONFIG_CACHE_LOCAL_EXPIRE_AFTER("datastore.cache.local.expire.after"),
29: /**
30: * Local cache maximum size
31: */
32: CONFIG_CACHE_LOCAL_SIZE_MAXIMUM("datastore.cache.local.size.maximum"),
33: /**
34: * Metadata cache maximum size
35: */
36: CONFIG_CACHE_METADATA_LOCAL_SIZE_MAXIMUM("datastore.cache.metadata.local.size.maximum"),
37: /**
38: * Enable datastore timing profile
39: */
40: CONFIG_DATA_STORAGE_ENABLE_TIMING_PROFILE("datastore.enableTimingProfile"),
41: /**
42: * Datastore timing profile threshold
43: */
44: CONFIG_DATA_STORAGE_TIMING_PROFILE_THRESHOLD("datastore.timingProfileThreshold"),
45: /**
46: * Elasticsearch index refresh interval (the data is available for a search operation only if it is indexed)
47: */
48: INDEX_REFRESH_INTERVAL("datastore.index.refresh_interval"),
49: /**
50: * Shards number
51: */
52: INDEX_SHARD_NUMBER("datastore.index.number_of_shards"),
53: /**
54: * Replicas count
55: */
56: INDEX_REPLICA_NUMBER("datastore.index.number_of_replicas"),
57: /**
58: * Elasticsearch index refresh interval (the data is available for a search operation only if it is indexed)
59: */
60: CONFIG_MAX_ENTRIES_ON_DELETE("datastore.delete.max_entries_on_delete"),
61: /**
62: * Elasticsearch index name system-wide prefix
63: */
64: INDEX_PREFIX("datastore.index.prefix"),
65: /**
66: * Elasticsearch index width. Allowed values: "week", "day", "hour"
67: */
68: INDEXING_WINDOW_OPTION("datastore.index.window"),
69: /**
70: * Disables the entire Datastore feature
71: */
72: DISABLE_DATASTORE("datastore.disable"),
73: /**
74: * Elasticsearch limit maximum value
75: */
76: MAX_LIMIT_VALUE("datastore.query.limit.max");
77:
78: private String key;
79:
80: private DatastoreSettingsKey(String key) {
81: this.key = key;
82: }
83:
84: @Override
85: public String key() {
86: return key;
87: }
88: }