org.elasticsearch.common.network
Class NetworkService
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.network.NetworkService
public class NetworkService
- extends AbstractComponent
Field Summary |
static java.lang.String |
LOCAL
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCAL
public static final java.lang.String LOCAL
- See Also:
- Constant Field Values
NetworkService
@Inject
public NetworkService(Settings settings)
addCustomNameResolver
public void addCustomNameResolver(java.lang.String name,
NetworkService.CustomNameResolver customNameResolver)
resolveBindHostAddress
public java.net.InetAddress resolveBindHostAddress(java.lang.String bindHost)
throws java.io.IOException
- Throws:
java.io.IOException
resolveBindHostAddress
public java.net.InetAddress resolveBindHostAddress(java.lang.String bindHost,
java.lang.String defaultValue2)
throws java.io.IOException
- Throws:
java.io.IOException
resolvePublishHostAddress
public java.net.InetAddress resolvePublishHostAddress(java.lang.String publishHost)
throws java.io.IOException
- Throws:
java.io.IOException
resolvePublishHostAddress
public java.net.InetAddress resolvePublishHostAddress(java.lang.String publishHost,
java.lang.String defaultValue2)
throws java.io.IOException
- Throws:
java.io.IOException
resolveInetAddress
public java.net.InetAddress resolveInetAddress(java.lang.String host,
java.lang.String defaultValue1,
java.lang.String defaultValue2)
throws java.net.UnknownHostException,
java.io.IOException
- Throws:
java.net.UnknownHostException
java.io.IOException