X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=rulemgt%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fholmes%2Frulemgt%2FRuleActiveApp.java;h=cd346deacb18b1d6bb6b8ee05616a58414b48d4f;hb=748f1ca148b4da50401eb9dfed92e8eef918a002;hp=c87be761ccdea8e0f11f82ba94aa98c05da69971;hpb=addd081a91a85d038c042f91bcf0f56a838a9c68;p=holmes%2Frule-management.git diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java index c87be76..cd346de 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/RuleActiveApp.java @@ -61,7 +61,7 @@ public class RuleActiveApp extends IOCApplication { log.warn(e.getMessage(), e); } - if (!System.getenv("TESTING").equals("1")) { + if (!"1".equals(System.getenv("TESTING"))) { ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor(); service.scheduleAtFixedRate( new DcaeConfigurationPolling(MicroServiceConfig.getEnv(MicroServiceConfig.HOSTNAME)), 0, @@ -88,7 +88,7 @@ public class RuleActiveApp extends IOCApplication { node.setIp(serviceAddrInfo[0]); node.setPort(serviceAddrInfo[1]); node.setCheckType("HTTP"); - node.setCheckUrl(String.format("https://%s:%s/api/holmes-rule-mgmt/v1/healthcheck", serviceAddrInfo[0], serviceAddrInfo[1])); + node.setCheckUrl(String.format("https://%s:%s/api/holmes-rule-mgmt/v1/healthcheck", serviceAddrInfo[0], "9101")); node.setCheckTimeOut("60s"); node.setCheckInterval("60s"); nodes.add(node);