You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by ti...@apache.org on 2016/09/26 05:39:51 UTC

asterixdb git commit: JIT Logger Instantiation For AsterixHyracksIntegrationUtil

Repository: asterixdb
Updated Branches:
  refs/heads/master 0ff3d098e -> 25c43f1e0


JIT Logger Instantiation For AsterixHyracksIntegrationUtil

Defer accessing the logger subsystem at static initialization time for
AsterixHyracksIntegrationUtil, to give opportunity for extensions to
configure logging.

Change-Id: I33fa8f5d336b62ce6eddd49cd4e8fb28b4833eb0
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1212
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/25c43f1e
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/25c43f1e
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/25c43f1e

Branch: refs/heads/master
Commit: 25c43f1e0a71ea6a0ac3bbcd67b112899ca321f8
Parents: 0ff3d09
Author: Michael Blow <mb...@apache.org>
Authored: Sun Sep 25 23:58:44 2016 -0400
Committer: Till Westmann <ti...@apache.org>
Committed: Sun Sep 25 22:39:26 2016 -0700

----------------------------------------------------------------------
 .../asterix/api/common/AsterixHyracksIntegrationUtil.java   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/25c43f1e/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
index 7a9f654..dc0087b 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
@@ -18,6 +18,8 @@
  */
 package org.apache.asterix.api.common;
 
+import static org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.LoggerHolder.LOGGER;
+
 import java.io.File;
 import java.net.Inet4Address;
 import java.util.ArrayList;
@@ -44,7 +46,12 @@ import org.apache.hyracks.control.common.controllers.NCConfig;
 import org.apache.hyracks.control.nc.NodeControllerService;
 
 public class AsterixHyracksIntegrationUtil {
-    private static final Logger LOGGER = Logger.getLogger(AsterixHyracksIntegrationUtil.class.getName());
+    static class LoggerHolder {
+        static final Logger LOGGER = Logger.getLogger(AsterixHyracksIntegrationUtil.class.getName());
+        private LoggerHolder() {
+        }
+    }
+
     private static final String IO_DIR_KEY = "java.io.tmpdir";
     public static final int DEFAULT_HYRACKS_CC_CLIENT_PORT = 1098;
     public static final int DEFAULT_HYRACKS_CC_CLUSTER_PORT = 1099;