Package: CloudConnectionConstants

CloudConnectionConstants

nameinstructionbranchcomplexitylinemethod
CloudConnectionConstants(String, int, String)
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
static {...}
M: 0 C: 26
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 5
100%
M: 0 C: 1
100%
value()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2018 Eurotech and/or its affiliates
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
11: *******************************************************************************/
12: package org.eclipse.kura.cloudconnection;
13:
14: import org.eclipse.kura.cloudconnection.factory.CloudConnectionFactory;
15: import org.eclipse.kura.cloudconnection.publisher.CloudPublisher;
16: import org.eclipse.kura.cloudconnection.subscriber.CloudSubscriber;
17:
18: /**
19: * Provides constants that are used by cloud connections to relate service instances to their respective
20: * {@link CloudEndpoint} or {@link CloudConnectionFactory}.
21: *
22: * @since 2.0
23: */
24: public enum CloudConnectionConstants {
25:
26: /**
27: * The key of the property that specifies the {@code kura.service.pid} of the associated
28: * {@link CloudEndpoint} in {@link CloudPublisher} or {@link CloudSubscriber} component configuration.
29: */
30: CLOUD_ENDPOINT_SERVICE_PID_PROP_NAME("cloud.endpoint.service.pid"),
31:
32: /**
33: * The key of the property that specifies the {@code kura.service.pid} of the associated
34: * {@link CloudConnectionFactory} in {@link CloudEndpoint} component definition.
35: */
36: CLOUD_CONNECTION_FACTORY_PID_PROP_NAME("cloud.connection.factory.pid");
37:
38: private String value;
39:
40: private CloudConnectionConstants(final String value) {
41: this.value = value;
42: }
43:
44: public String value() {
45: return this.value;
46: }
47: }