|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.network.NetworkService
public class NetworkService
| Nested Class Summary | |
|---|---|
static interface |
NetworkService.CustomNameResolver
A custom name resolver can support custom lookup keys (my_net_key:ipv4) and also change the default inet address used in case no settings is provided. |
static class |
NetworkService.TcpSettings
|
| Field Summary | |
|---|---|
static java.lang.String |
LOCAL
|
| Fields inherited from class org.elasticsearch.common.component.AbstractComponent |
|---|
componentSettings, logger, settings |
| Constructor Summary | |
|---|---|
NetworkService(Settings settings)
|
|
| Method Summary | |
|---|---|
void |
addCustomNameResolver(NetworkService.CustomNameResolver customNameResolver)
Add a custom name resolver. |
java.net.InetAddress |
resolveBindHostAddress(java.lang.String bindHost)
|
java.net.InetAddress |
resolveBindHostAddress(java.lang.String bindHost,
java.lang.String defaultValue2)
|
java.net.InetAddress |
resolveInetAddress(java.lang.String host,
java.lang.String defaultValue1,
java.lang.String defaultValue2)
|
java.net.InetAddress |
resolvePublishHostAddress(java.lang.String publishHost)
|
java.net.InetAddress |
resolvePublishHostAddress(java.lang.String publishHost,
java.lang.String defaultValue2)
|
| Methods inherited from class org.elasticsearch.common.component.AbstractComponent |
|---|
nodeName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOCAL
| Constructor Detail |
|---|
@Inject public NetworkService(Settings settings)
| Method Detail |
|---|
public void addCustomNameResolver(NetworkService.CustomNameResolver customNameResolver)
public java.net.InetAddress resolveBindHostAddress(java.lang.String bindHost)
throws java.io.IOException
java.io.IOException
public java.net.InetAddress resolveBindHostAddress(java.lang.String bindHost,
java.lang.String defaultValue2)
throws java.io.IOException
java.io.IOException
public java.net.InetAddress resolvePublishHostAddress(java.lang.String publishHost)
throws java.io.IOException
java.io.IOException
public java.net.InetAddress resolvePublishHostAddress(java.lang.String publishHost,
java.lang.String defaultValue2)
throws java.io.IOException
java.io.IOException
public java.net.InetAddress resolveInetAddress(java.lang.String host,
java.lang.String defaultValue1,
java.lang.String defaultValue2)
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||