优化日志以及属性设置代码
This commit is contained in:
@@ -23,7 +23,7 @@ import java.util.List;
|
||||
* @email qingtaij@163.com
|
||||
*/
|
||||
public class Jt808Decoder extends ByteToMessageDecoder {
|
||||
private final static Logger log = LoggerFactory.getLogger(Jt808Decoder.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(Jt808Decoder.class);
|
||||
|
||||
@Override
|
||||
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.slf4j.LoggerFactory;
|
||||
* @email qingtaij@163.com
|
||||
*/
|
||||
public class Jt808Encoder extends MessageToByteEncoder<Rs> {
|
||||
private final static Logger log = LoggerFactory.getLogger(Jt808Encoder.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(Jt808Encoder.class);
|
||||
|
||||
@Override
|
||||
protected void encode(ChannelHandlerContext ctx, Rs msg, ByteBuf out) throws Exception {
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.LinkedList;
|
||||
* @email qingtaij@163.com
|
||||
*/
|
||||
public class Jt808EncoderCmd extends MessageToByteEncoder<Cmd> {
|
||||
private final static Logger log = LoggerFactory.getLogger(Jt808EncoderCmd.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(Jt808EncoderCmd.class);
|
||||
|
||||
@Override
|
||||
protected void encode(ChannelHandlerContext ctx, Cmd cmd, ByteBuf out) throws Exception {
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.slf4j.LoggerFactory;
|
||||
*/
|
||||
public class Jt808Handler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
private final static Logger log = LoggerFactory.getLogger(Jt808Handler.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(Jt808Handler.class);
|
||||
|
||||
@Override
|
||||
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit;
|
||||
*/
|
||||
|
||||
public class TcpServer {
|
||||
private final static Logger log = LoggerFactory.getLogger(TcpServer.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(TcpServer.class);
|
||||
|
||||
private final Integer port;
|
||||
private boolean isRunning = false;
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class CodecFactory {
|
||||
private final static Logger log = LoggerFactory.getLogger(CodecFactory.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(CodecFactory.class);
|
||||
|
||||
private static Map<String, Class<?>> protocolHash;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.springframework.util.StringUtils;
|
||||
* @email qingtaij@163.com
|
||||
*/
|
||||
public abstract class Re {
|
||||
private final static Logger log = LoggerFactory.getLogger(Re.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(Re.class);
|
||||
|
||||
protected abstract Rs decode0(ByteBuf buf, Header header, Session session);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
* @email qingtaij@163.com
|
||||
*/
|
||||
public class Session {
|
||||
private final static Logger log = LoggerFactory.getLogger(Session.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(Session.class);
|
||||
|
||||
public static final AttributeKey<Session> KEY = AttributeKey.newInstance(Session.class.getName());
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.concurrent.TimeUnit;
|
||||
*/
|
||||
public enum SessionManager {
|
||||
INSTANCE;
|
||||
private final static Logger log = LoggerFactory.getLogger(SessionManager.class);
|
||||
private final static Logger logger = LoggerFactory.getLogger(SessionManager.class);
|
||||
|
||||
// 用与消息的缓存
|
||||
private final Map<String, SynchronousQueue<String>> topicSubscribers = new ConcurrentHashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user