@Override public void send(final Serializable msg,final INode to){
  if (shutdown) {
    return;
  }
  if (logger.isLoggable(Level.FINEST)) {
    logger.log(Level.FINEST,"Sending" + msg + " to:"+ to);
  }
  final MessageHeader header=new MessageHeader(to,node,msg);
  final SocketChannel socketChannel=nodeToChannel.get(to);
  if (socketChannel == null) {
    if (logger.isLoggable(Level.FINER)) {
      logger.log(Level.FINER,"no channel for node:" + to + " dropping message:"+ msg);
    }
    return;
  }
  nioSocket.send(socketChannel,header);
}

@ Override public void send ( final Serializable msg , final INode to ) { if ( shutdown ) { return ; } if ( logger . isLoggable ( Level . FINEST ) ) { logger . log ( Level . FINEST , "Sending" + msg + " to:" + to ) ; } final MessageHeader header = new MessageHeader ( to , node , msg ) ; final SocketChannel socketChannel = nodeToChannel . get ( to ) ; if ( socketChannel == null ) { if ( logger . isLoggable ( Level . FINER ) ) { logger . log ( Level . FINER , "no channel for node:" + to + " dropping message:" + msg ) ; } return ; } nioSocket . send ( socketChannel , header ) ; }
send a message to the given node .
