From 389c85c8e7213c10c17896f4c63d94e2b5e9d27a Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Tue, 20 Feb 2024 14:33:26 +0000 Subject: Fix config files to remove outdated configuration for hibernate Issue-ID: POLICY-4929 Change-Id: Icd796030753c505c99c1840d8d11fb2f8300c15e Signed-off-by: adheli.tavares --- .../src/main/java/org/onap/policy/models/simulators/Main.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'models-sim/policy-models-simulators') 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()); -- cgit 1.2.3-korg