Package herddb.network.netty
Class NetworkUtils
- java.lang.Object
-
- herddb.network.netty.NetworkUtils
-
public class NetworkUtils extends Object
Network utility- Author:
- enrico.olivelli
-
-
Constructor Summary
Constructors Constructor Description NetworkUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intassignFirstFreePort()static StringgetAddress(InetSocketAddress address)static StringgetLocalNetworkAddress()static booleanisEnableEpoolNative()
-
-
-
Method Detail
-
isEnableEpoolNative
public static boolean isEnableEpoolNative()
-
getAddress
public static String getAddress(InetSocketAddress address)
-
assignFirstFreePort
public static int assignFirstFreePort() throws IOException- Throws:
IOException
-
getLocalNetworkAddress
public static String getLocalNetworkAddress() throws UnknownHostException
- Throws:
UnknownHostException
-
-