Class ConcurrentOpenSocketFinder

    • Method Detail

      • findOpenSocketOnNode

        public com.google.common.net.HostAndPort findOpenSocketOnNode​(NodeMetadata node,
                                                                      int port,
                                                                      long timeout,
                                                                      TimeUnit timeUnits)
        Specified by:
        findOpenSocketOnNode in interface OpenSocketFinder
        Parameters:
        node - The node (checking its public and private addresses)
        port - The port to try to connect to
        timeout - Max time to try to connect to the ip:port
        Returns:
        The reachable ip:port
      • retryPredicate

        protected <T> com.google.common.base.Predicate<T> retryPredicate​(com.google.common.base.Predicate<T> findOrBreak,
                                                                         long timeout,
                                                                         long period,
                                                                         TimeUnit timeUnits)