/
KeystoreMetrics.java
78 lines (69 loc) · 1.78 KB
/
KeystoreMetrics.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*******************************************************************************
* Copyright (c) 2021 Eurotech and/or its affiliates and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eurotech - initial API and implementation
*******************************************************************************/
package org.eclipse.kapua.service.device.call.kura.model.keystore;
import org.eclipse.kapua.service.device.call.message.DeviceMetrics;
import org.eclipse.kapua.service.device.call.message.app.DeviceAppMetrics;
/**
* Keystore {@link DeviceMetrics}.
*
* @since 1.5.0
*/
public enum KeystoreMetrics implements DeviceAppMetrics {
/**
* Application identifier.
*
* @since 1.5.0
*/
APP_ID("KEYS"),
/**
* Application version.
*
* @since 1.5.0
*/
APP_VERSION("V1"),
;
/**
* The name of the metric.
*
* @since 1.5.0
*/
private final String name;
/**
* Constructor.
*
* @param name The name of the metric.
* @since 1.5.0
*/
KeystoreMetrics(String name) {
this.name = name;
}
/**
* Gets the value property associated to this specific enumeration key.
*
* @return the value property associated to this specific enumeration key.
* @since 1.5.0
* @deprecated Since 1.2.0. Renamed to {@link #getName()}.
*/
@Deprecated
public String getValue() {
return getName();
}
@Override
public String getName() {
return name;
}
@Override
public String toString() {
return getName();
}
}