APISonar


org.grain.tcp.MinaConfig.log

> org > grain > tcp > MinaConfig > log
org APIs grain APIs tcp APIs MinaConfig APIs log APIs

Example 1
public void messageReceived(IoSession session, Object message) throws Exception {
		super.messageReceived(session, message);
		if (MinaConfig.log != null) {
			MinaConfig.log.info("minaserver messageReceived");
		}
		ThreadTcpManager.dispatchTcp((TcpPacket) message);
	}
Example 2
public void sessionClosed(IoSession session) throws Exception {
		super.sessionClosed(session);
		if (MinaConfig.log != null) {
			MinaConfig.log.warn("minaserver sessionClosed");
		}
		ThreadMsgManager.dispatchThreadMsg(TcpMsg.MINA_CLIENT_DISCONNECT, null, session);
	}