public class ReachableSocketFinder
extends java.lang.Object
| Constructor and Description |
|---|
ReachableSocketFinder( |
ReachableSocketFinder(ListeningExecutorService userExecutor) |
| Modifier and Type | Method and Description |
|---|---|
HostAndPort |
findOpenSocketOnNode(java.util.Collection<? extends HostAndPort> sockets,
Duration timeout) |
public ReachableSocketFinder(ListeningExecutorService userExecutor)
public ReachableSocketFinder(socketTester, ListeningExecutorService userExecutor)
public HostAndPort findOpenSocketOnNode(java.util.Collection<? extends HostAndPort> sockets,
Duration timeout)
sockets - The host-and-ports to testtimeout - Max time to try to connect to the ip:portjava.util.NoSuchElementException - If no ports accessible within the given timejava.lang.NullPointerException - If the sockets or duration is nulljava.lang.IllegalStateException - If the sockets to test is empty