public class ClusterUtils extends Object
Modifier and Type | Method and Description |
---|---|
static InetAddress |
addressFromIpString(String ipString)
Takes a raw IP string and converts it to an InetAddress.
|
static Iterator<NetworkInterface> |
getClusterableInterfaces()
Find all network interfaces on the host that are suitable for clustering via multicast
|
static InetAddress |
hashNameToAddress(String name)
Hash a name to a IPv4 network address.
|
static InetAddress |
hashNameToMulticastAddress(String name)
Hash a name to a valid IPv4 multicast IP address.
|
static boolean |
isLoopbackInterface(NetworkInterface iface) |
static InetAddress |
resolveName(String name) |
public static InetAddress resolveName(String name)
public static InetAddress hashNameToAddress(String name)
name
- public static InetAddress hashNameToMulticastAddress(String name)
name
- public static Iterator<NetworkInterface> getClusterableInterfaces() throws SocketException
NetworkInterface
sSocketException
public static InetAddress addressFromIpString(String ipString)
ipString
- String representing and IP addressIllegalArgumentException
- if the string is not a valid IP stringpublic static boolean isLoopbackInterface(NetworkInterface iface)
Copyright © 2003–2016 Atlassian. All rights reserved.