java.lang.Object
org.xbib.multiserv.plugin.jdbc.NetworkUtils
Helper class for Java networking.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
static String
format
(InetAddress address) static String
format
(InetAddress address, int port) static String
format
(InetSocketAddress address) static List
<InetAddress> static List
<NetworkInterface> static List
<NetworkInterface> static InetAddress
getFirstAddress
(NetworkInterface networkInterface, NetworkUtils.NetworkProtocolVersion ipVersion) static InetAddress
getFirstNonLoopbackAddress
(NetworkInterface networkInterface, NetworkUtils.NetworkProtocolVersion ipVersion) static InetAddress
static List
<NetworkInterface> getInterfaces
(Predicate<NetworkInterface> predicate) static InetAddress
static InetAddress
static InetAddress
static String
getLocalHostAddress
(String defaultHostAddress) static String
getLocalHostName
(String defaultHostName) static String
static String
static boolean
interfaceSupports
(NetworkInterface networkInterface, NetworkUtils.NetworkProtocolVersion ipVersion) static boolean
static boolean
static InetAddress
resolveInetAddress
(String hostname, String defaultValue) static InetAddress
static String
static String
static List
<NetworkInterface> static List
<NetworkInterface> waitForNetworkInterfaces
(long period, TimeUnit timeUnit, byte[] address)
-
Methodendetails
-
waitForNetworkInterfaces
- Löst aus:
InterruptedException
-
waitForNetworkInterfaces
public static List<NetworkInterface> waitForNetworkInterfaces(long period, TimeUnit timeUnit, byte[] address) throws InterruptedException - Löst aus:
InterruptedException
-
extendSystemProperties
public static void extendSystemProperties() -
isPreferIPv4
public static boolean isPreferIPv4() -
isPreferIPv6
public static boolean isPreferIPv6() -
getIPv4Localhost
- Löst aus:
UnknownHostException
-
getIPv6Localhost
- Löst aus:
UnknownHostException
-
getLocalHostName
-
getLocalHostAddress
-
getLocalAddress
-
format
-
format
-
format
-
toUriString
-
toAddrString
-
getAllNetworkInterfaces
- Löst aus:
InterruptedException
-
getAllRunningAndUpInterfaces
- Löst aus:
InterruptedException
-
getFirstNonLoopbackAddress
public static InetAddress getFirstNonLoopbackAddress(NetworkUtils.NetworkProtocolVersion ipversion) throws InterruptedException - Löst aus:
InterruptedException
-
getFirstNonLoopbackAddress
public static InetAddress getFirstNonLoopbackAddress(NetworkInterface networkInterface, NetworkUtils.NetworkProtocolVersion ipVersion) -
getFirstAddress
public static InetAddress getFirstAddress(NetworkInterface networkInterface, NetworkUtils.NetworkProtocolVersion ipVersion) -
interfaceSupports
public static boolean interfaceSupports(NetworkInterface networkInterface, NetworkUtils.NetworkProtocolVersion ipVersion) -
getProtocolVersion
- Löst aus:
InterruptedException
-
findAvailableProtocols
public static NetworkUtils.NetworkProtocolVersion findAvailableProtocols() throws InterruptedException- Löst aus:
InterruptedException
-
resolveInetAddress
public static InetAddress resolveInetAddress(String hostname, String defaultValue) throws IOException, InterruptedException - Löst aus:
IOException
InterruptedException
-
resolvePublicHostAddress
public static InetAddress resolvePublicHostAddress(String host) throws IOException, InterruptedException - Löst aus:
IOException
InterruptedException
-
getInterfaces
public static List<NetworkInterface> getInterfaces(Predicate<NetworkInterface> predicate) throws InterruptedException - Löst aus:
InterruptedException
-
getAllAvailableAddresses
- Löst aus:
InterruptedException
-
getNetworkInterfacesAsString
- Löst aus:
InterruptedException
-
getNetworkInterfaceAsString
-