Changes made to upgrade pom version
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / service / WidgetMServiceImpl.java
index 21f1648..29180d5 100644 (file)
@@ -39,6 +39,7 @@ package org.onap.portalapp.portal.service;
 
 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
@@ -53,5 +54,13 @@ public class WidgetMServiceImpl implements WidgetMService {
                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;    
+       }
 
 }