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
 java.net.InetAddress resolveDefault()
          Resolves the default value if possible.
 java.net.InetAddress resolveIfPossible(java.lang.String value)
          Resolves a custom value handling, return null if can't handle it.
 

Method Detail

resolveDefault

java.net.InetAddress resolveDefault()
Resolves the default value if possible. If not, return null.


resolveIfPossible

java.net.InetAddress resolveIfPossible(java.lang.String value)
Resolves a custom value handling, return null if can't handle it.