static String getServerIdFromHandshake ( ChannelBuffer handshakeBuffer , ObjectMapper mapper ) throws IOException { Handshake handshake = getHandshakeFromBuffer ( handshakeBuffer , mapper ) ; return handshake . getServerId ( ) ; }
Extract the unique id of the Raft server that sent a handshake message from its wire representation .