Class AllocateAndAddFloatingIpToNode
java.lang.Object
org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode
- All Implemented Interfaces:
com.google.common.base.Function<AtomicReference<NodeAndNovaTemplateOptions>,,AtomicReference<org.jclouds.compute.domain.NodeMetadata>> Function<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<org.jclouds.compute.domain.NodeMetadata>>
public class AllocateAndAddFloatingIpToNode
extends Object
implements com.google.common.base.Function<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<org.jclouds.compute.domain.NodeMetadata>>
A function for adding and allocating an ip to a node
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllocateAndAddFloatingIpToNode(com.google.common.base.Predicate<AtomicReference<org.jclouds.compute.domain.NodeMetadata>> nodeRunning, NovaApi novaApi, com.google.common.cache.LoadingCache<RegionAndId, Iterable<? extends FloatingIpForServer>> floatingIpCache, CleanupResources cleanupResources) -
Method Summary
Modifier and TypeMethodDescriptionAtomicReference<org.jclouds.compute.domain.NodeMetadata>toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
logger
@Named("jclouds.compute") protected org.jclouds.logging.Logger logger
-
-
Constructor Details
-
AllocateAndAddFloatingIpToNode
@Inject public AllocateAndAddFloatingIpToNode(@Named("jclouds.compute.timeout.node-running") com.google.common.base.Predicate<AtomicReference<org.jclouds.compute.domain.NodeMetadata>> nodeRunning, NovaApi novaApi, @Named("FLOATINGIP") com.google.common.cache.LoadingCache<RegionAndId, Iterable<? extends FloatingIpForServer>> floatingIpCache, CleanupResources cleanupResources)
-
-
Method Details
-
apply
public AtomicReference<org.jclouds.compute.domain.NodeMetadata> apply(AtomicReference<NodeAndNovaTemplateOptions> input) - Specified by:
applyin interfacecom.google.common.base.Function<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<org.jclouds.compute.domain.NodeMetadata>> - Specified by:
applyin interfaceFunction<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<org.jclouds.compute.domain.NodeMetadata>>
-
toString
-