Merge "fixed sonar issue in MusicPolicyVoilationException"
[music.git] / src / main / java / org / onap / music / main / MusicUtil.java
index 40d1976..cfad845 100755 (executable)
@@ -101,7 +101,7 @@ public class MusicUtil {
     private static String cassName = "cassandra";
     private static String cassPwd;
     private static String aafEndpointUrl = null;
-    public static ConcurrentMap<String, Long> zkNodeMap = new ConcurrentHashMap<>();
+    public static final ConcurrentMap<String, Long> zkNodeMap = new ConcurrentHashMap<>();
 
     private MusicUtil() {
         throw new IllegalStateException("Utility Class");
@@ -599,7 +599,7 @@ public class MusicUtil {
                    try {
                        input.close();
                    } catch (IOException e) {
-                       e.printStackTrace();
+                       logger.error(EELFLoggerDelegate.applicationLogger,"Load properties failed "+e.getMessage(),e);
                    }
                }
            }
@@ -615,10 +615,10 @@ public class MusicUtil {
                
        }
     
-       private static void setNotifyInterval(int notifyinterval) {
+       public static void setNotifyInterval(int notifyinterval) {
                MusicUtil.notifyinterval = notifyinterval;
        }
-       private static void setNotifyTimeOut(int notifytimeout) {
+       public static void setNotifyTimeOut(int notifytimeout) {
                MusicUtil.notifytimeout = notifytimeout;
        }