示例#1
0
  static {
    // log4j Hack
    LoggerUtil.setupLogging();

    // Jar Caching!
    boolean reuse = false;
    if (System.getenv("ENABLE_JAR_REUSE") != null) {
      reuse = Boolean.valueOf(System.getenv("ENABLE_JAR_REUSE"));
      if (reuse) LOG.debug("ENABLE_JAR_REUSE = " + reuse);
    }
    ENABLE_JAR_REUSE = reuse;

    // HStoreConf Hack
    HStoreConf.init(null, null);
    HStoreConf.singleton().site.cpu_affinity = false;

    // Force everything to be single-threaded
    ThreadUtil.setMaxGlobalThreads(2);
  }
 static {
   LoggerUtil.attachObserver(LOG, debug, trace);
 }
示例#3
0
 static {
   LoggerUtil.setupLogging();
 }