X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=appc-dispatcher%2Fappc-dispatcher-common%2Fexecution-queue-management-lib%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fexecutionqueue%2Fhelper%2FUtil.java;h=3affb3094d98b745f33ab285d89857c1c4a96fed;hb=aa350b8ce81033db26dbb88f47c072bd0f32ce86;hp=b890014034585055bc6f87f2185c674f89d948b9;hpb=ee2eb7f226eb6e4faf6aa020acf379cbd2e2b254;p=appc.git diff --git a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java index b89001403..3affb3094 100644 --- a/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java +++ b/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/src/main/java/org/onap/appc/executionqueue/helper/Util.java @@ -35,10 +35,10 @@ import java.util.concurrent.atomic.AtomicInteger; public class Util { - private int default_queue_size = 10; - private int default_threadpool_size = 10; - private String queue_size_key = "appc.dispatcher.executionqueue.backlog.size"; - private String threadpool_size_key = "appc.dispatcher.executionqueue.threadpool.size"; + private int defaultQueueSize = 10; + private int defaultThreadpoolSize = 10; + private String queueSizeKey = "appc.dispatcher.executionqueue.backlog.size"; + private String threadpoolSizeKey = "appc.dispatcher.executionqueue.threadpool.size"; private EELFLogger logger = EELFManager.getInstance().getLogger(Util.class); private Configuration configuration; @@ -52,9 +52,9 @@ public class Util { } public int getExecutionQueueSize() { - String sizeStr = configuration.getProperty(queue_size_key, String.valueOf(default_queue_size)); + String sizeStr = configuration.getProperty(queueSizeKey, String.valueOf(defaultQueueSize)); - int size = default_queue_size; + int size = defaultQueueSize; try { size = Integer.parseInt(sizeStr); } catch (NumberFormatException e) { @@ -65,9 +65,9 @@ public class Util { } public int getThreadPoolSize() { - String sizeStr = configuration.getProperty(threadpool_size_key, String.valueOf(default_threadpool_size)); + String sizeStr = configuration.getProperty(threadpoolSizeKey, String.valueOf(defaultThreadpoolSize)); - int size = default_threadpool_size; + int size = defaultThreadpoolSize; try { size = Integer.parseInt(sizeStr); } catch (NumberFormatException e) {