public class JcloudsUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.Integer,java.lang.Integer> |
dockerPortMappingsFor(JcloudsLocation docker,
java.lang.String containerId) |
static java.lang.String |
getFirstReachableAddress(org.jclouds.compute.domain.NodeMetadata node,
Duration timeout)
Uses
Networking.isReachablePredicate() to determine reachability. |
static java.lang.String |
getFirstReachableAddress(org.jclouds.compute.domain.NodeMetadata node,
Duration timeout,
<any> socketTester) |
static java.lang.Iterable<HostAndPort> |
getReachableAddresses(java.lang.Iterable<HostAndPort> sockets,
Duration timeout,
<any> socketTester)
Uses
ReachableSocketFinder to determine which sockets are reachable. |
static java.lang.Iterable<HostAndPort> |
getReachableAddresses(java.lang.Iterable<java.lang.String> hosts,
int port,
Duration timeout,
<any> socketTester) |
static java.lang.Iterable<HostAndPort> |
getReachableAddresses(org.jclouds.compute.domain.NodeMetadata node,
Duration timeout,
<any> socketTester) |
static java.lang.String |
waitForPasswordOnAws(org.jclouds.compute.ComputeService computeService,
org.jclouds.compute.domain.NodeMetadata node,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
public static java.lang.String getFirstReachableAddress(org.jclouds.compute.domain.NodeMetadata node,
Duration timeout)
Networking.isReachablePredicate() to determine reachability.#getReachableAddresses(NodeMetadata, Duration, Predicate)public static java.lang.String getFirstReachableAddress(org.jclouds.compute.domain.NodeMetadata node,
Duration timeout,
<any> socketTester)
#getReachableAddresses(NodeMetadata, Duration, Predicate)public static java.lang.Iterable<HostAndPort> getReachableAddresses(org.jclouds.compute.domain.NodeMetadata node,
Duration timeout,
<any> socketTester)
#getReachableAddresses(Iterable, Duration, Predicate)public static java.lang.Iterable<HostAndPort> getReachableAddresses(java.lang.Iterable<java.lang.String> hosts,
int port,
Duration timeout,
<any> socketTester)
#getReachableAddresses(Iterable, Duration, Predicate)public static java.lang.Iterable<HostAndPort> getReachableAddresses(java.lang.Iterable<HostAndPort> sockets,
Duration timeout,
<any> socketTester)
ReachableSocketFinder to determine which sockets are reachable. Iterators
are unmodifiable and are lazily evaluated.sockets - The host-and-ports to testtimeout - Max time to try to connect to the ip:portsocketTester - A predicate determining reachability.public static java.lang.String waitForPasswordOnAws(org.jclouds.compute.ComputeService computeService,
org.jclouds.compute.domain.NodeMetadata node,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutExceptionpublic static java.util.Map<java.lang.Integer,java.lang.Integer> dockerPortMappingsFor(JcloudsLocation docker, java.lang.String containerId)