Package org.elasticsearch.common.network
Interface NetworkService.CustomNameResolver
- Enclosing class:
- NetworkService
public 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.
-
Method Summary
Modifier and TypeMethodDescriptionResolves the default value if possible.resolveIfPossible
(String value) Resolves a custom value handling, returnnull
if can't handle it.
-
Method Details
-
resolveDefault
InetAddress[] resolveDefault()Resolves the default value if possible. If not, returnnull
. -
resolveIfPossible
Resolves a custom value handling, returnnull
if can't handle it.- Throws:
IOException
-