if(logger.isDebugEnabled()) {
logger.debug("handle message, " + msg.printHeaders() + " | " + msg.getSrc() + " | " + msg.getObject()) ;
}
Session session = (Session) msg.getObject();
TankView view = session.tankView();
if(view.isLive()){
Tank tank = tankMap.get(view.getId());
if(null == tank) {
tankMap.put(view.getId(), new Tank(view));
} else {
tank.updateTank(view);
}
} else {
tankMap.remove(view.getId());
}
}