示例#1
0
  /** 系统关闭前调用 */
  public void beforeJFinalStop() {
    log.info("beforeJFinalStop 释放lucene索引资源");
    new DocKeyword().close();

    log.info("beforeJFinalStop 释放日志入库线程");
    ThreadSysLog.setThreadRun(false);

    log.info("beforeJFinalStop 释放系统负载抓取线程");
    TimerResources.stop();
  }
示例#2
0
  /** 系统启动完成后执行 */
  public void afterJFinalStart() {
    log.info("afterJFinalStart 缓存参数");
    new ThreadParamInit().start();

    log.info("afterJFinalStart 启动操作日志入库线程");
    ThreadSysLog.startSaveDBThread();

    boolean luceneIndex = getPropertyToBoolean(DictKeys.config_luceneIndex, false);
    if (luceneIndex) {
      log.info("afterJFinalStart 创建自动回复lucene索引");
      new DocKeyword().run();
    }

    log.info("afterJFinalStart 系统负载");
    TimerResources.start();
  }