Skip to content

Package: GatewayConfiguration

GatewayConfiguration

nameinstructionbranchcomplexitylinemethod
GatewayConfiguration(String, String, String)
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
getAccountName()
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%
getBrokerUrl()
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%
getClientId()
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%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Red Hat Inc 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: * Red Hat Inc - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.kura.simulator;
14:
15: /**
16: * This holds the main configuration of a gateway instance
17: */
18: public class GatewayConfiguration {
19:
20: private final String brokerUrl;
21: private final String accountName;
22: private final String clientId;
23:
24: public GatewayConfiguration(final String brokerUrl, final String accountName, final String clientId) {
25: this.brokerUrl = brokerUrl;
26: this.accountName = accountName;
27: this.clientId = clientId;
28: }
29:
30: public String getBrokerUrl() {
31: return brokerUrl;
32: }
33:
34: public String getAccountName() {
35: return accountName;
36: }
37:
38: public String getClientId() {
39: return clientId;
40: }
41: }