public interface OpenSocketFinder
Modifier and Type | Method and Description |
---|---|
com.google.common.net.HostAndPort |
findOpenSocketOnNode(NodeMetadata node,
int port,
long timeoutValue,
TimeUnit timeUnits) |
com.google.common.net.HostAndPort findOpenSocketOnNode(NodeMetadata node, int port, long timeoutValue, TimeUnit timeUnits)
node
- The node (checking its public and private addresses)port
- The port to try to connect totimeoutValue
- Max time to try to connect to the ip:porttimeUnits
- NoSuchElementException
- If no ports accessible within the given timeIllegalStateException
- If the given node has no public or private addressesCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.