public class ConcurrentOpenSocketFinder extends Object implements OpenSocketFinder
| Constructor and Description | 
|---|
ConcurrentOpenSocketFinder(SocketOpen socketTester,
                          com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning,
                          ExecutorService userThreads)  | 
| Modifier and Type | Method and Description | 
|---|---|
com.google.common.net.HostAndPort | 
findOpenSocketOnNode(NodeMetadata node,
                    int port,
                    long timeoutValue,
                    TimeUnit timeUnits)  | 
@Inject public ConcurrentOpenSocketFinder(SocketOpen socketTester, @Named(value="jclouds.compute.timeout.node-running") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, @Named(value="jclouds.user-threads") ExecutorService userThreads)
public com.google.common.net.HostAndPort findOpenSocketOnNode(NodeMetadata node, int port, long timeoutValue, TimeUnit timeUnits)
findOpenSocketOnNode in interface OpenSocketFindernode - 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:portCopyright © 2009-2013 jclouds. All Rights Reserved.