public class InetUtils extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
InetUtils.HostInfo |
Constructor and Description |
---|
InetUtils(InetUtilsProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static InetUtils.HostInfo |
convert(InetAddress address) |
InetUtils.HostInfo |
convertAddress(InetAddress address) |
InetAddress |
findFirstNonLoopbackAddress() |
InetUtils.HostInfo |
findFirstNonLoopbackHostInfo() |
static InetUtils.HostInfo |
getFirstNonLoopbackHostInfo()
Find the first non-loopback host info.
|
static int |
getIpAddressAsInt(String host) |
public InetUtils(InetUtilsProperties properties)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public InetUtils.HostInfo findFirstNonLoopbackHostInfo()
public InetAddress findFirstNonLoopbackAddress()
public InetUtils.HostInfo convertAddress(InetAddress address)
public static InetUtils.HostInfo getFirstNonLoopbackHostInfo()
public static InetUtils.HostInfo convert(InetAddress address)
public static int getIpAddressAsInt(String host)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.