Package org.elasticsearch.common.network
Class NetworkService
org.elasticsearch.common.network.NetworkService
public final class NetworkService
extends
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
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. -
Field Summary
Modifier and TypeFieldDescriptionstatic
By default, we bind to loopback interfacesstatic <>>
static <>>
static <>>
static >
static Setting<org.elasticsearch.core.TimeValue>
static >
static >
static >
static >
static >
static Setting<ByteSizeValue>
static >
static Setting<ByteSizeValue>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription[]
[] bindHosts)
ResolvesbindHosts
to a list of internet addresses.[] publishHosts)
ResolvespublishHosts
to a single publish address.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
DEFAULT_NETWORK_HOST
public static final DEFAULT_NETWORK_HOSTBy default, we bind to loopback interfaces- See Also:
- Constant Field Values
-
NETWORK_SERVER
public static final > NETWORK_SERVER -
GLOBAL_NETWORK_HOST_SETTING
public static final <>> GLOBAL_NETWORK_HOST_SETTING -
GLOBAL_NETWORK_BIND_HOST_SETTING
public static final <>> GLOBAL_NETWORK_BIND_HOST_SETTING -
GLOBAL_NETWORK_PUBLISH_HOST_SETTING
public static final <>> GLOBAL_NETWORK_PUBLISH_HOST_SETTING -
TCP_NO_DELAY
public static final > TCP_NO_DELAY -
TCP_KEEP_ALIVE
public static final > TCP_KEEP_ALIVE -
TCP_KEEP_IDLE
public static final > TCP_KEEP_IDLE -
TCP_KEEP_INTERVAL
public static final > TCP_KEEP_INTERVAL -
TCP_KEEP_COUNT
public static final > TCP_KEEP_COUNT -
TCP_REUSE_ADDRESS
public static final > TCP_REUSE_ADDRESS -
TCP_SEND_BUFFER_SIZE
-
TCP_RECEIVE_BUFFER_SIZE
-
TCP_CONNECT_TIMEOUT
-
-
Constructor Details
-
NetworkService
-
-
Method Details
-
resolveBindHostAddresses
public [] resolveBindHostAddresses([] bindHosts) throwsResolvesbindHosts
to a list of internet addresses. The list will not contain duplicate addresses.- Parameters:
bindHosts
- list of hosts to bind to. this may contain special pseudo-hostnames such as _local_ (see the documentation). if it is null, it will fall back to _local_- Returns:
- unique set of internet addresses
- Throws:
-
resolvePublishHostAddresses
public resolvePublishHostAddresses([] publishHosts) throwsResolvespublishHosts
to a single publish address. The fact that it returns only one address is just a current limitation.If
publishHosts
resolves to more than one address, then one is selected with magic- Parameters:
publishHosts
- list of hosts to publish as. this may contain special pseudo-hostnames such as _local_ (see the documentation). if it is null, it will fall back to _local_- Returns:
- single internet address
- Throws:
-