aboutsummaryrefslogtreecommitdiffstats
path: root/models-sim
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2024-02-20 14:33:26 +0000
committeradheli.tavares <adheli.tavares@est.tech>2024-02-21 11:00:35 +0000
commit389c85c8e7213c10c17896f4c63d94e2b5e9d27a (patch)
tree1a54214282acaa444c9ce36b5cf8dc7310296640 /models-sim
parent107b75a2b584222f7d5dcdbec64063c036b4f2b2 (diff)
Fix config files to remove outdated configuration for hibernate
Issue-ID: POLICY-4929 Change-Id: Icd796030753c505c99c1840d8d11fb2f8300c15e Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'models-sim')
-rw-r--r--models-sim/policy-models-simulators/src/main/java/org/onap/policy/models/simulators/Main.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/models-sim/policy-models-simulators/src/main/java/org/onap/policy/models/simulators/Main.java b/models-sim/policy-models-simulators/src/main/java/org/onap/policy/models/simulators/Main.java
index b1ee73942..1951ea3c5 100644
--- a/models-sim/policy-models-simulators/src/main/java/org/onap/policy/models/simulators/Main.java
+++ b/models-sim/policy-models-simulators/src/main/java/org/onap/policy/models/simulators/Main.java
@@ -66,7 +66,6 @@ public class Main extends ServiceManagerContainer {
super(Main.class.getPackage().getName());
SimulatorParameters params = readParameters(paramFile);
- String messageBroker = "models-sim";
CdsServerParameters cdsServer = params.getGrpcServer();
@@ -87,7 +86,7 @@ public class Main extends ServiceManagerContainer {
() -> Registry.unregister(resourceLocationId));
}
addAction(restsim.getName(),
- () -> ref.set(buildRestServer(messageBroker, restsim)),
+ () -> ref.set(buildRestServer(restsim)),
() -> ref.get().shutdown());
}
// @formatter:on
@@ -144,9 +143,9 @@ public class Main extends ServiceManagerContainer {
}
- private HttpServletServer buildRestServer(String messageBroker, ClassRestServerParameters params) {
+ private HttpServletServer buildRestServer(ClassRestServerParameters params) {
try {
- var props = getServerProperties(messageBroker, params);
+ var props = getServerProperties(params);
HttpServletServer testServer = makeServer(props);
testServer.waitedStart(5000);
@@ -173,7 +172,7 @@ public class Main extends ServiceManagerContainer {
* @param params parameters from which to build the properties
* @return a Map of properties representing the given parameters
*/
- private static Properties getServerProperties(String messageBroker, ClassRestServerParameters params) {
+ private static Properties getServerProperties(ClassRestServerParameters params) {
final var props = new Properties();
props.setProperty(PolicyEndPointProperties.PROPERTY_HTTP_SERVER_SERVICES, params.getName());