Package org.jclouds.compute.util
Interface OpenSocketFinder
- 
- All Known Implementing Classes:
 ConcurrentOpenSocketFinder
public interface OpenSocketFinderFor finding an open/reachable ip:port for a node. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.net.HostAndPortfindOpenSocketOnNode(NodeMetadata node, int port, long timeoutValue, TimeUnit timeUnits) 
 - 
 
- 
- 
Method Detail
- 
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 totimeoutValue- Max time to try to connect to the ip:porttimeUnits-- Returns:
 - The reachable ip:port
 - Throws:
 NoSuchElementException- If no ports accessible within the given timeIllegalStateException- If the given node has no public or private addresses
 
 - 
 
 -