Skip to content

Package: KapuaDeviceRegistrySettingKeys

KapuaDeviceRegistrySettingKeys

nameinstructionbranchcomplexitylinemethod
KapuaDeviceRegistrySettingKeys(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: 48 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 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.device.registry;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16: import org.eclipse.kapua.message.device.lifecycle.KapuaBirthMessage;
17:
18: /**
19: * {@link SettingKey}s for KapuaDeviceRegistrySettings.
20: *
21: * @since 1.0.0
22: */
23: public enum KapuaDeviceRegistrySettingKeys implements SettingKey {
24:
25: /**
26: * The key value in the configuration resources.
27: *
28: * @since 1.0.0
29: */
30: DEVICE_REGISTRY_KEY("device.registry.key"),
31:
32: /**
33: * @since 1.0.0
34: */
35: DEVICE_EVENT_ADDRESS("device.eventAddress"),
36:
37: /**
38: * Gets the hard limit for {@link KapuaBirthMessage} generic fields length.
39: *
40: * @since 2.0.0
41: */
42: DEVICE_LIFECYCLE_BIRTH_VAR_FIELDS_LENGTH_MAX("device.lifecycle.birth.var.fields.length.max"),
43:
44: /**
45: * Gets the hard limit for {@link KapuaBirthMessage} {@link DeviceExtendedProperty#getValue()} fields length hdrd limit.
46: *
47: * @since 2.0.0
48: */
49: DEVICE_LIFECYCLE_BIRTH_EXTENDED_PROPERTIES_LENGTH_MAX("device.lifecycle.birth.extended.properties.length.max"),
50:
51: ;
52:
53: private final String key;
54:
55: /**
56: * Set up the {@code enum} with the key value provided
57: *
58: * @param key The value mapped by this {@link Enum} value
59: * @since 1.0.0
60: */
61: KapuaDeviceRegistrySettingKeys(String key) {
62: this.key = key;
63: }
64:
65: /**
66: * Gets the key for this {@link KapuaDeviceRegistrySettingKeys}
67: *
68: * @since 1.0.0
69: */
70: @Override
71: public String key() {
72: return key;
73: }
74: }