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 Type Method Description java.net.InetAddress[]
resolveDefault()
Resolves the default value if possible.java.net.InetAddress[]
resolveIfPossible(java.lang.String value)
Resolves a custom value handling, returnnull
if can't handle it.
-
Method Details
-
resolveDefault
java.net.InetAddress[] resolveDefault()Resolves the default value if possible. If not, returnnull
. -
resolveIfPossible
java.net.InetAddress[] resolveIfPossible(java.lang.String value) throws java.io.IOExceptionResolves a custom value handling, returnnull
if can't handle it.- Throws:
java.io.IOException
-