diff --git a/src/main/java/org/gridsuite/gateway/GatewayConfig.java b/src/main/java/org/gridsuite/gateway/GatewayConfig.java index 53dbd1a..bb3596b 100644 --- a/src/main/java/org/gridsuite/gateway/GatewayConfig.java +++ b/src/main/java/org/gridsuite/gateway/GatewayConfig.java @@ -54,7 +54,6 @@ public RouteLocator myRoutes(RouteLocatorBuilder builder, ApplicationContext con .route(p -> context.getBean(DynamicSecurityAnalysisServer.class).getRoute(p)) .route(p -> context.getBean(VoltageInitServer.class).getRoute(p)) .route(p -> context.getBean(ShortCircuitServer.class).getRoute(p)) - .route(p -> context.getBean(SnapshotRefinerServer.class).getRoute(p)) .route(p -> context.getBean(StudyConfigServer.class).getRoute(p)) .route(p -> context.getBean(GeoDataServer.class).getRoute(p)) .route(p -> context.getBean(PccMinServer.class).getRoute(p)) diff --git a/src/main/java/org/gridsuite/gateway/ServiceURIsConfig.java b/src/main/java/org/gridsuite/gateway/ServiceURIsConfig.java index f6cb00f..fe4b1b9 100644 --- a/src/main/java/org/gridsuite/gateway/ServiceURIsConfig.java +++ b/src/main/java/org/gridsuite/gateway/ServiceURIsConfig.java @@ -114,9 +114,6 @@ public class ServiceURIsConfig { @Value("${gridsuite.services.state-estimation-server.base-uri:http://state-estimation-server/}") String stateEstimationServerBaseUri; - @Value("${gridsuite.services.snapshot-refiner-server.base-uri:http://snapshot-refiner-server/}") - String snapshotRefinerServerBaseUri; - @Value("${gridsuite.services.study-config-server.base-uri:http://study-config-server/}") String studyConfigServerBaseUri; diff --git a/src/main/java/org/gridsuite/gateway/endpoints/SnapshotRefinerServer.java b/src/main/java/org/gridsuite/gateway/endpoints/SnapshotRefinerServer.java deleted file mode 100644 index 256370c..0000000 --- a/src/main/java/org/gridsuite/gateway/endpoints/SnapshotRefinerServer.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - Copyright (c) 2024, RTE (http://www.rte-france.com) - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -package org.gridsuite.gateway.endpoints; - -import org.gridsuite.gateway.ServiceURIsConfig; -import org.springframework.stereotype.Component; - -/** - * @author Franck Lecuyer - */ -@Component(value = SnapshotRefinerServer.ENDPOINT_NAME) -public class SnapshotRefinerServer implements EndPointServer { - - public static final String ENDPOINT_NAME = "snapshot-refiner"; - - private final ServiceURIsConfig servicesURIsConfig; - - public SnapshotRefinerServer(ServiceURIsConfig servicesURIsConfig) { - this.servicesURIsConfig = servicesURIsConfig; - } - - @Override - public String getEndpointBaseUri() { - return servicesURIsConfig.getSnapshotRefinerServerBaseUri(); - } - - @Override - public String getEndpointName() { - return ENDPOINT_NAME; - } -} diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index dde9059..c3f18e6 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -68,8 +68,6 @@ gridsuite: base-uri: http://localhost:5031 state-estimation-server: base-uri: http://localhost:6040 - snapshot-refiner-server: - base-uri: http://localhost:6041 study-config-server: base-uri: http://localhost:5035 user-identity-server: