Package org.elasticsearch.common.network
Class NetworkUtils
- java.lang.Object
-
- org.elasticsearch.common.network.NetworkUtils
-
public abstract class NetworkUtils extends java.lang.ObjectUtilities for network interfaces / addresses binding and publishing. Its only intended for that purpose, not general purpose usage!!!!
-
-
Field Summary
Fields Modifier and Type Field Description static booleanSUPPORTS_V6Deprecated.transition mechanism only, do not use
-
Method Summary
Modifier and Type Method Description static booleandefaultReuseAddress()Returns system default for SO_REUSEADDRstatic voidsortAddresses(java.util.List<java.net.InetAddress> list)Deprecated.remove this when multihoming is really correct
-
-
-
Method Detail
-
sortAddresses
@Deprecated public static void sortAddresses(java.util.List<java.net.InetAddress> list)
Deprecated.remove this when multihoming is really correctSorts addresses by order of preference. This is used to pick the first one for publishing
-
defaultReuseAddress
public static boolean defaultReuseAddress()
Returns system default for SO_REUSEADDR
-
-