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<NodeMetadata>>
,Function<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<NodeMetadata>>
public class AllocateAndAddFloatingIpToNode extends Object implements com.google.common.base.Function<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<NodeMetadata>>
A function for adding and allocating an ip to a node
-
-
Constructor Summary
Constructors Constructor Description AllocateAndAddFloatingIpToNode(com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, NovaApi novaApi, com.google.common.cache.LoadingCache<RegionAndId,Iterable<? extends FloatingIpForServer>> floatingIpCache, CleanupResources cleanupResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicReference<NodeMetadata>
apply(AtomicReference<NodeAndNovaTemplateOptions> input)
String
toString()
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
-
Constructor Detail
-
AllocateAndAddFloatingIpToNode
@Inject public AllocateAndAddFloatingIpToNode(@Named("jclouds.compute.timeout.node-running") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, NovaApi novaApi, @Named("FLOATINGIP") com.google.common.cache.LoadingCache<RegionAndId,Iterable<? extends FloatingIpForServer>> floatingIpCache, CleanupResources cleanupResources)
-
-
Method Detail
-
apply
public AtomicReference<NodeMetadata> apply(AtomicReference<NodeAndNovaTemplateOptions> input)
- Specified by:
apply
in interfacecom.google.common.base.Function<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<NodeMetadata>>
- Specified by:
apply
in interfaceFunction<AtomicReference<NodeAndNovaTemplateOptions>,AtomicReference<NodeMetadata>>
-
-