Package org.elasticsearch.common.network
Interface NetworkService.CustomNameResolver
-
- Enclosing class:
- NetworkService
public static interface NetworkService.CustomNameResolverA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetAddress[]resolveDefault()Resolves the default value if possible.InetAddress[]resolveIfPossible(String value)Resolves a custom value handling, returnnullif can't handle it.
-
-
-
Method Detail
-
resolveDefault
InetAddress[] resolveDefault()
Resolves the default value if possible. If not, returnnull.
-
resolveIfPossible
InetAddress[] resolveIfPossible(String value) throws IOException
Resolves a custom value handling, returnnullif can't handle it.- Throws:
IOException
-
-