import org.onap.portalapp.portal.utils.EcompPortalUtils;
import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
+import org.onap.portalsdk.core.util.SystemProperties;
import org.springframework.stereotype.Component;
@Component
logger.debug(logger.debugLogger, "returned service location: "+ localFallbackServiceLocation);
return localFallbackServiceLocation;
}
+
+ @Override
+ public String getMLServiceLocation() {
+ logger.debug(logger.debugLogger, "Requested Service: ML");
+ String localFallbackServiceLocation = EcompPortalUtils.mlLocalOrDockerHost() + ":" + SystemProperties.getProperty("microservices.ml.port");
+ logger.debug(logger.debugLogger, "returned service location: "+ localFallbackServiceLocation);
+ return localFallbackServiceLocation;
+ }
}