public class IpUtils extends Object
| Constructor and Description |
|---|
IpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areAllLocal(Collection<String> targetServerNames) |
static String |
getHostName() |
static Collection<String> |
getLocalHostnames() |
static boolean |
isLocal(String name)
Try to determine (but not accurately) if a given name matches a local address.
|
public static boolean isLocal(String name)
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
public static boolean areAllLocal(Collection<String> targetServerNames)
public static String getHostName()
public static Collection<String> getLocalHostnames()
Copyright © 2022. All rights reserved.