Skip to content

Package: MqttClientSetting

MqttClientSetting

nameinstructionbranchcomplexitylinemethod
MqttClientSetting()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getInstance()
M: 2 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: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2020 Eurotech and/or its affiliates and others
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License v1.0
6: * which accompanies this distribution, and is available at
7: * http://www.eclipse.org/legal/epl-v10.html
8: *
9: * Contributors:
10: * Eurotech - initial API and implementation
11: *******************************************************************************/
12: package org.eclipse.kapua.transport.mqtt.setting;
13:
14: import org.eclipse.kapua.commons.setting.AbstractKapuaSetting;
15:
16: /**
17: * Class that offers access to all setting of {@link org.eclipse.kapua.transport.mqtt}
18: *
19: * @since 1.0.0
20: */
21: public class MqttClientSetting extends AbstractKapuaSetting<MqttClientSettingKeys> {
22:
23: /**
24: * Resource file from which source properties.
25: *
26: * @since 1.0.0
27: */
28: private static final String MQTT_CLIENT_CONFIG_RESOURCE = "mqtt-client-setting.properties";
29:
30: /**
31: * Singleton instance of this {@link Class}.
32: *
33: * @since 1.0.0
34: */
35: private static final MqttClientSetting INSTANCE = new MqttClientSetting();
36:
37: /**
38: * Initialize the {@link AbstractKapuaSetting} with the {@link MqttClientSetting#MQTT_CLIENT_CONFIG_RESOURCE} value.
39: *
40: * @since 1.0.0
41: */
42: private MqttClientSetting() {
43: super(MQTT_CLIENT_CONFIG_RESOURCE);
44: }
45:
46: /**
47: * Gets a singleton instance of {@link MqttClientSetting}.
48: *
49: * @return A singleton instance of {@link MqttClientSetting}.
50: * @since 1.0.0
51: */
52: public static MqttClientSetting getInstance() {
53: return INSTANCE;
54: }
55: }