Code example for InetSocketAddress

Methods: toString

0
   private ClusterUtil() { 
      // Utility class 
   } 
 
   public static String asId(InetSocketAddress address) {
      return address.toString();
   } 
 
   public static XmlMember fromMember(Member member) {
      return new XmlMember(member.getInetSocketAddress().toString(), member.hasData(), member.isLocal());
   } 
}