Skip to content

Package: JobServiceSettingKeys

JobServiceSettingKeys

nameinstructionbranchcomplexitylinemethod
JobServiceSettingKeys(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: 15 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2023, 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.job.internal.settings;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16: import org.eclipse.kapua.service.job.step.definition.JobStepProperty;
17:
18: /**
19: * {@link SettingKey}s for {@link JobServiceSettings}.
20: *
21: * @since 2.0.0
22: */
23: public enum JobServiceSettingKeys implements SettingKey {
24:
25: /**
26: * Max length of {@link JobStepProperty#getPropertyValue()}.
27: *
28: * @since 2.0.0
29: */
30: JOB_STEP_PROPERTY_VALUE_LENGTH_MAX("job.step.property.value.length.max");
31:
32: /**
33: * The key value of the {@link SettingKey}.
34: *
35: * @since 120.0
36: */
37: private final String key;
38:
39: /**
40: * Constructor.
41: *
42: * @param key The key value of the {@link SettingKey}.
43: * @since 2.0.0
44: */
45: private JobServiceSettingKeys(String key) {
46: this.key = key;
47: }
48:
49: @Override
50: public String key() {
51: return key;
52: }
53: }