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