Interface OpenSocketFinder

All Known Implementing Classes:
ConcurrentOpenSocketFinder

public interface OpenSocketFinder
For finding an open/reachable ip:port for a node.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.net.HostAndPort
    findOpenSocketOnNode(NodeMetadata node, int port, long timeoutValue, TimeUnit timeUnits)
     
  • Method Details

    • findOpenSocketOnNode

      com.google.common.net.HostAndPort findOpenSocketOnNode(NodeMetadata node, int port, long timeoutValue, TimeUnit timeUnits)
      Parameters:
      node - The node (checking its public and private addresses)
      port - The port to try to connect to
      timeoutValue - Max time to try to connect to the ip:port
      timeUnits -
      Returns:
      The reachable ip:port