Class NodeResolverService

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

public final class NodeResolverService extends AbstractService
Service for resolving a NodeId to an ip address on the local network.
Version:
2024-02-20
  • Constructor Details

    • NodeResolverService

      public NodeResolverService()
  • Method Details

    • resolve

      public String resolve(NodeId nodeId)
      Resolve a nodeId to an ip address. Returns null if the nodeId has no known address.
    • resolve

      public String resolve(String hostname)
      Resolve a hostname to an ip address if the hostname happens to be a known nodeId. Returns null if the hostname doesn't match any known node.