什么是IStartupLevel的gradle这个项目中的作用

时间:2019-02-02 06:34:12

标签: java gradle intellij-idea

所以我工作的这个开源项目。 有一个名为IStartupLevel文件,这是gradle这个项目的一部分, 我不知道这是如何工作。你可以帮我了解这种类型的代码的作用和数据库之后什么逗号手段,服务等,以及哪些呢log.info是什么意思?

import java.lang.management.ManagementFactory;
public enum StartupLevel implements IStartupLevel {
BeforeStart {
    @Override
    public void invokeDepends() {
        log.info("Build Date............................. 01/12/19");
    }
},
Configure,
Threading,
Database,
Service,
Data,
World,
Network,
AfterStart {
    @Override
    public void invokeDepends() throws InterruptedException {
        System.gc();
        System.runFinalization();
        for (final String line : ServerInfoUtils.getMemUsage()) {
            log.info(line);
        }
        LoginNetworkThread.getInstance().startup();
        log.info("Server loaded in {} millisecond(s).", ServerInfoUtils.formatNumber(ManagementFactory.getRuntimeMXBean().getUptime()));
    }
};

private static final Logger log;

static {
    log = LoggerFactory.getLogger(StartupLevel.class);
  }
}

import java.lang.management.ManagementFactory;
public enum StartupLevel implements IStartupLevel {
BeforeStart {
    @Override
    public void invokeDepends() {
        log.info("Build Date............................. 01/12/19");
    }
},
Configure,
Threading,
Database,
Service,
Data,
World,
Network,
AfterStart {
    @Override
    public void invokeDepends() throws InterruptedException {
        System.gc();
        System.runFinalization();
        for (final String line : ServerInfoUtils.getMemUsage()) {
            log.info(line);
        }
        LoginNetworkThread.getInstance().startup();
        log.info("Server loaded in {} millisecond(s).", 



 ServerInfoUtils.formatNumber
(ManagementFactory.getRuntimeMXBean().getUptime()));
    }
};

private static final Logger log;

static {
    log = LoggerFactory.getLogger(StartupLevel.class);
}
 }

0 个答案:

没有答案