Skip to content

Package: KuraNotifyMetrics

KuraNotifyMetrics

nameinstructionbranchcomplexitylinemethod
KuraNotifyMetrics(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: 202 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 19 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.notification;
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 KuraNotifyMetrics implements DeviceRequestMetrics {
23:
24: /**
25: * @since 1.0.0
26: */
27: OPERATION_ID("job.id"),
28: /**
29: * @since 1.2.0
30: */
31: OPERATION_ID_ALTERNATIVE("operation.id"),
32:
33: /**
34: * @since 1.2.0
35: */
36: STATUS("status"),
37: /**
38: * @since 1.0.0
39: */
40: DOWNLOAD_STATUS("dp.download.status"),
41: /**
42: * @since 1.0.0
43: */
44: INSTALL_STATUS("dp.install.status"),
45: /**
46: * @since 1.0.0
47: */
48: UNINSTALL_STATUS("dp.uninstall.status"),
49:
50: /**
51: * @since 1.2.0
52: */
53: PROGRESS("progress"),
54: /**
55: * @since 1.0.0
56: */
57: DOWNLOAD_PROGRESS("dp.download.progress"),
58: /**
59: * @since 1.0.0
60: */
61: INSTALL_PROGRESS("dp.install.progress"),
62: /**
63: * @since 1.0.0
64: */
65: UNINSTALL_PROGRESS("dp.uninstall.progress"),
66:
67: /**
68: * @since 1.2.0
69: */
70: MESSAGE("message"),
71: /**
72: * @since 1.2.0
73: */
74: NOTIFY_MESSAGE("dp.notify.message"),
75: /**
76: * @since 1.2.0
77: */
78: DOWNLOAD_MESSAGE("dp.download.message"),
79: /**
80: * @since 1.2.0
81: */
82: DOWNLOAD_ERROR_MESSAGE("dp.download.error.message"),
83: /**
84: * @since 1.2.0
85: */
86: INSTALL_MESSAGE("dp.install.message"),
87: /**
88: * @since 1.2.0
89: */
90: INSTALL_ERROR_MESSAGE("dp.install.error.message"),
91: /**
92: * @since 1.2.0
93: */
94: UNINSTALL_MESSAGE("dp.uninstall.message"),
95: /**
96: * @since 1.2.0
97: */
98: UNINSTALL_ERROR_MESSAGE("dp.uninstall.error.message"),
99: ;
100:
101: /**
102: * The metric name
103: *
104: * @since 1.0.0
105: */
106: private final String name;
107:
108: /**
109: * Constructor.
110: *
111: * @param name The metric name
112: * @since 1.0.0
113: */
114: KuraNotifyMetrics(String name) {
115: this.name = name;
116: }
117:
118: @Override
119: public String getName() {
120: return name;
121: }
122:
123: @Override
124: public String getValue() {
125: return getName();
126: }
127: }