Skip to content

Package: ServiceEventModuleConfiguration

ServiceEventModuleConfiguration

nameinstructionbranchcomplexitylinemethod
ServiceEventModuleConfiguration(String, EntityManagerFactory, ServiceEventClientConfiguration[])
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%
getEntityManagerFactory()
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%
getInternalAddress()
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%
getServiceEventClientConfigurations()
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 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.commons.event;
14:
15: import org.eclipse.kapua.commons.jpa.EntityManagerFactory;
16:
17: public class ServiceEventModuleConfiguration {
18:
19: private String internalAddress;
20: private EntityManagerFactory entityManagerFactory;
21: private ServiceEventClientConfiguration[] serviceEventClientConfigurations;
22:
23: public ServiceEventModuleConfiguration(String internalAddress, EntityManagerFactory entityManagerFactory,
24: ServiceEventClientConfiguration[] serviceEventListenerConfigurations) {
25: this.internalAddress = internalAddress;
26: this.entityManagerFactory = entityManagerFactory;
27: this.serviceEventClientConfigurations = serviceEventListenerConfigurations;
28: }
29:
30: public String getInternalAddress() {
31: return internalAddress;
32: }
33:
34: public EntityManagerFactory getEntityManagerFactory() {
35: return entityManagerFactory;
36: }
37:
38: public ServiceEventClientConfiguration[] getServiceEventClientConfigurations() {
39: return serviceEventClientConfigurations;
40: }
41: }