本文整理汇总了Java中cn.nukkit.utils.ThreadedLogger类的典型用法代码示例。如果您正苦于以下问题:Java ThreadedLogger类的具体用法?Java ThreadedLogger怎么用?Java ThreadedLogger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ThreadedLogger类属于cn.nukkit.utils包,在下文中一共展示了ThreadedLogger类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: UDPServerSocket
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public UDPServerSocket(ThreadedLogger logger, int port, String interfaz) {
this.logger = logger;
try {
bootstrap = new Bootstrap();
group = new NioEventLoopGroup();
bootstrap
.group(group)
.channel(NioDatagramChannel.class)
.handler(this);
channel = bootstrap.bind(interfaz, port).sync().channel();
} catch (Exception e) {
this.logger.critical("**** FAILED TO BIND TO " + interfaz + ":" + port + "!");
this.logger.critical("Perhaps a server is already running on that port?");
System.exit(1);
}
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:17,代码来源:UDPServerSocket.java
示例2: UDPServerSocket
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public UDPServerSocket(ThreadedLogger logger, int port, String interfaz) {
this.logger = logger;
try {
bootstrap = new Bootstrap();
group = new NioEventLoopGroup();
bootstrap
.group(group)
.channel(NioDatagramChannel.class)
.handler(this);
channel = bootstrap.bind(interfaz, port).sync().channel();
} catch (Exception e) {
this.logger.critical(FastAppender.get(interfaz, ":", port, " 上でサーバーを開けませんでした。"));
this.logger.critical("同じポートで複数のサーバーを一度に開いていませんか?");
System.exit(1);
}
}
开发者ID:JupiterDevelopmentTeam,项目名称:Jupiter,代码行数:17,代码来源:UDPServerSocket.java
示例3: UDPServerSocket
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public UDPServerSocket(ThreadedLogger logger, int port, String interfaz) {
this.logger = logger;
try {
bootstrap = new Bootstrap();
group = new NioEventLoopGroup();
bootstrap
.group(group)
.channel(NioDatagramChannel.class)
.handler(this);
channel = bootstrap.bind(interfaz, port).sync().channel();
} catch (InterruptedException e) {
this.logger.critical("**** FAILED TO BIND TO " + interfaz + ":" + port + "!");
this.logger.critical("Perhaps a server is already running on that port?");
System.exit(1);
}
}
开发者ID:PrismarineMC,项目名称:MagmaBlock,代码行数:17,代码来源:UDPServerSocket.java
示例4: RakNetServer
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public RakNetServer(ThreadedLogger logger, int port, String interfaz) {
this.port = port;
if (port < 1 || port > 65536) {
throw new IllegalArgumentException("Invalid port range");
}
this.interfaz = interfaz;
this.logger = logger;
this.externalQueue = new ConcurrentLinkedQueue<>();
this.internalQueue = new ConcurrentLinkedQueue<>();
this.start();
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:15,代码来源:RakNetServer.java
示例5: SynapseClient
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public SynapseClient(ThreadedLogger logger, int port, String interfaz) {
this.logger = logger;
this.interfaz = interfaz;
this.port = port;
if (port < 1 || port > 65536) {
throw new IllegalArgumentException("Invalid port range");
}
this.shutdown = false;
this.externalQueue = new ConcurrentLinkedQueue<>();
this.internalQueue = new ConcurrentLinkedQueue<>();
this.start();
}
开发者ID:PrismarineMC,项目名称:MagmaBlock,代码行数:14,代码来源:SynapseClient.java
示例6: getLogger
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public ThreadedLogger getLogger() {
return this.server.getLogger();
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:4,代码来源:SessionManager.java
示例7: getLogger
import cn.nukkit.utils.ThreadedLogger; //导入依赖的package包/类
public ThreadedLogger getLogger() {
return logger;
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:4,代码来源:RakNetServer.java
注:本文中的cn.nukkit.utils.ThreadedLogger类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论