Search in sources :

Example 1 with Type

use of io.jpom.common.Type in project Jpom by dromara.

the class ConsoleStartSuccess method success.

/**
 * 输出启动成功的 日志
 */
@PreLoadMethod(value = Integer.MAX_VALUE)
private static void success() {
    Type type = JpomManifest.getInstance().getType();
    int port = ConfigBean.getInstance().getPort();
    String localhostStr = NetUtil.getLocalhostStr();
    String url = StrUtil.format("http://{}:{}", localhostStr, port);
    if (type == Type.Server) {
        Console.log("{} Successfully started,Can use happily => {} 【The current address is for reference only】", type, url);
    } else if (type == Type.Agent) {
        Console.log("{} Successfully started,Please go to the server to configure and use,Current node address => {} 【The current address is for reference only】", type, url);
    }
}
Also used : Type(io.jpom.common.Type) PreLoadMethod(cn.jiangzeyin.common.PreLoadMethod)

Aggregations

PreLoadMethod (cn.jiangzeyin.common.PreLoadMethod)1 Type (io.jpom.common.Type)1