Skip to content

Package: KuraRequestMetrics

KuraRequestMetrics

nameinstructionbranchcomplexitylinemethod
KuraRequestMetrics(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%
getName()
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%
getValue()
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: 26 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 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: *******************************************************************************/
13: package org.eclipse.kapua.service.device.call.message.kura.app.request;
14:
15: import org.eclipse.kapua.service.device.call.message.app.request.DeviceRequestMetrics;
16:
17: /**
18: * {@link DeviceRequestMetrics }{@link org.eclipse.kapua.service.device.call.kura.Kura} implementation.
19: *
20: * @since 1.0.0
21: */
22: public enum KuraRequestMetrics implements DeviceRequestMetrics {
23:
24: /**
25: * Request identifier.
26: *
27: * @since 1.0.0
28: */
29: REQUEST_ID("request.id"),
30: /**
31: * Requester client identifier.
32: *
33: * @since 1.0.0
34: */
35: REQUESTER_CLIENT_ID("requester.client.id"),
36: ;
37:
38: /**
39: * The metric name.
40: *
41: * @since 1.0.0
42: */
43: private final String name;
44:
45: /**
46: * Constructor.
47: *
48: * @param name The metric name.
49: * @since 1.0.0
50: */
51: KuraRequestMetrics(String name) {
52: this.name = name;
53: }
54:
55: @Override
56: public String getName() {
57: return name;
58: }
59:
60: @Override
61: public String getValue() {
62: return getName();
63: }
64: }