Skip to content

Package: ServiceConfig

ServiceConfig

nameinstructionbranchcomplexitylinemethod
getType()
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%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 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.configuration;
14:
15: import java.util.Properties;
16:
17: import org.eclipse.kapua.KapuaException;
18: import org.eclipse.kapua.model.KapuaUpdatableEntity;
19:
20: /**
21: * Configuration service definition.
22: *
23: * @since 1.0
24: */
25: public interface ServiceConfig extends KapuaUpdatableEntity {
26:
27: /**
28: * Service configuration type
29: */
30: public static final String TYPE = "scfg";
31:
32: /**
33: * Return the service type
34: */
35: public default String getType() {
36: return TYPE;
37: }
38:
39: /**
40: * Return service pid
41: *
42: * @return
43: */
44: public String getPid();
45:
46: /**
47: * Set service pid
48: *
49: * @param pid
50: */
51: public void setPid(String pid);
52:
53: /**
54: * Return service configurations
55: *
56: * @return
57: * @throws KapuaException
58: */
59: public Properties getConfigurations() throws KapuaException;
60:
61: /**
62: * Set service configurations
63: *
64: * @param configurations
65: * @throws KapuaException
66: */
67: public void setConfigurations(Properties configurations) throws KapuaException;
68: }