Package | Description |
---|---|
org.elasticsearch.common.network |
Modifier and Type | Method and Description |
---|---|
static NetworkUtils.StackType |
NetworkUtils.getIpStackType()
Tries to determine the type of IP stack from the available interfaces and their addresses and from the
system properties (java.net.preferIPv4Stack and java.net.preferIPv6Addresses)
|
static NetworkUtils.StackType |
NetworkUtils.StackType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkUtils.StackType[] |
NetworkUtils.StackType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static InetAddress |
NetworkUtils.getFirstAddress(NetworkInterface intf,
NetworkUtils.StackType ipVersion)
Returns the first address with the proper ipVersion on the given interface on the current host.
|
static InetAddress |
NetworkUtils.getFirstNonLoopbackAddress(NetworkInterface intf,
NetworkUtils.StackType ipVersion)
Returns the first non-loopback address on the given interface on the current host.
|
static InetAddress |
NetworkUtils.getFirstNonLoopbackAddress(NetworkUtils.StackType ip_version)
Returns the first non-loopback address on any interface on the current host.
|
static InetAddress |
NetworkUtils.getLocalhost(NetworkUtils.StackType ip_version) |
static boolean |
NetworkUtils.interfaceHasIPAddresses(NetworkInterface intf,
NetworkUtils.StackType ipVersion)
A function to check if an interface supports an IP version (i.e has addresses
defined for that IP version).
|
Copyright © 2009–2015. All rights reserved.