Class NodeResolverService

java.lang.Object
com.kosdev.kos.core.service.noderesolver.NodeResolverService

public final class NodeResolverService extends Object
Service for resolving a NodeId to an ip address on the local network.
Since:
1
Version:
1
  • Method Details

    • resolve

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

      public String resolve(String hostname)
      Resolve a hostname to an ip address if the hostname happens to be a known nodeId, otherwise returns null.
      Since:
      1