Skip to content

Package: PackageManagementServiceSettingKeys

PackageManagementServiceSettingKeys

nameinstructionbranchcomplexitylinemethod
PackageManagementServiceSettingKeys(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: 59 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2019, 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.management.packages.internal.setting;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16:
17: /**
18: * Available settings key for {@link PackageManagementServiceSetting}
19: *
20: * @since 1.1.0
21: */
22: public enum PackageManagementServiceSettingKeys implements SettingKey {
23: /**
24: * The key value in the configuration resources.
25: *
26: * @since 1.1.0
27: */
28: PACKAGE_MANAGEMENT_SERVICE_SETTING_KEYS("service.device.management.package.key"),
29:
30: /**
31: * @since 1.1.0
32: */
33: PACKAGE_MANAGEMENT_SERVICE_SETTING_DOWDLOAD_DEFAULT_BLOCK_SIZE("service.device.management.package.key.download.default.block.size"),
34: /**
35: * @since 1.1.0
36: */
37: PACKAGE_MANAGEMENT_SERVICE_SETTING_DOWDLOAD_DEFAULT_BLOCK_DELAY("service.device.management.package.key.download.default.block.delay"),
38: /**
39: * @since 1.1.0
40: */
41: PACKAGE_MANAGEMENT_SERVICE_SETTING_DOWDLOAD_DEFAULT_BLOCK_TIMEOUT("service.device.management.package.key.download.default.block.timeout"),
42: /**
43: * @since 1.1.0
44: */
45: PACKAGE_MANAGEMENT_SERVICE_SETTING_DOWDLOAD_DEFAULT_NOTIFY_BLOCK_SIZE("service.device.management.package.key.download.default.notify.block.size");
46:
47: private String key;
48:
49: /**
50: * Set up the {@code enum} with the key value provided
51: *
52: * @param key The value mapped by this {@link Enum} value
53: */
54: private PackageManagementServiceSettingKeys(String key) {
55: this.key = key;
56: }
57:
58: /**
59: * Gets the key for this {@link PackageManagementServiceSettingKeys}
60: */
61: @Override
62: public String key() {
63: return key;
64: }
65: }