summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java11
-rw-r--r--dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java17
2 files changed, 21 insertions, 7 deletions
diff --git a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java
index 6cb1d9c33..ea7b3fdc8 100644
--- a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java
+++ b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/config/DbConfigPool.java
@@ -27,14 +27,21 @@ import java.util.Properties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * @version $Revision: 1.15 $
+ * Change Log
+ * Author Date Comments
+ * ============== ======== ====================================================
+ * Rich Tabedzki
+ */
public class DbConfigPool {
- private static Logger log = LoggerFactory.getLogger(DbConfigPool.class);
+ private static final Logger LOGGER = LoggerFactory.getLogger(DbConfigPool.class);
private final String type;
private static final int timeOut=0;
private ArrayList<BaseDBConfiguration> configurations = new ArrayList<>();
public DbConfigPool(Properties properties) {
- log.debug("Initializing DbConfigType");
+ LOGGER.debug("Initializing DbConfigType");
type = properties.getProperty(BaseDBConfiguration.DATABASE_TYPE, "JDBC").toUpperCase();
}
diff --git a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java
index 454af02bb..f66250676 100644
--- a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java
+++ b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java
@@ -34,9 +34,16 @@ import java.util.concurrent.atomic.AtomicLong;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * @version $Revision: 1.15 $
+ * Change Log
+ * Author Date Comments
+ * ============== ======== ====================================================
+ * Rich Tabedzki
+ */
public class PollingWorker implements Runnable {
- private Logger logger = LoggerFactory.getLogger(PollingWorker.class);
+ private static final Logger LOGGER = LoggerFactory.getLogger(PollingWorker.class);
private static PollingWorker self = null;
@@ -116,7 +123,7 @@ public class PollingWorker implements Runnable {
consume((TestSample) next);
} else {
System.out.println(next.getClass().getName());
- logger.error(next.getClass().getName());
+ LOGGER.error(next.getClass().getName());
}
}
try {
@@ -152,7 +159,7 @@ public class PollingWorker implements Runnable {
}
sb.append(tmp2[i].get()).append("\t");
}
- logger.info(sb.toString());
+ LOGGER.info(sb.toString());
}
class MyTimerTask extends TimerTask {
@@ -191,8 +198,8 @@ public class PollingWorker implements Runnable {
}
/**
- * @author Rich Tabedzki A helper class to pass measured parameter to the
- * counter.
+ * @author Rich Tabedzki
+ * A helper class to pass measured parameter to the counter.
*/
static class TestSample implements Comparable {
private long starttime;