Class IpUtils


  • public class IpUtils
    extends Object
    • Constructor Detail

      • IpUtils

        public IpUtils()
    • Method Detail

      • isLocal

        public static boolean isLocal​(String name)
        Try to determine (but not accurately) if a given name matches a local address. A local address is a local IP or local hostname.

        This "name" can be any Angela generated names (i.e. in case of client arrays instanceId or symbolic names), we do not use "getByName()" to avoid any dns resolution

      • areAllLocal

        public static boolean areAllLocal​(Collection<String> targetServerNames)
      • getHostName

        public static String getHostName()