org.jclouds.openstack.nova.v2_0.compute.functions
Class AllocateAndAddFloatingIpToNode

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode
All Implemented Interfaces:
com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>>

public class AllocateAndAddFloatingIpToNode
extends Object
implements com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>>

A function for adding and allocating an ip to a node

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
AllocateAndAddFloatingIpToNode(com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, NovaApi novaApi, com.google.common.cache.LoadingCache<ZoneAndId,Iterable<FloatingIP>> floatingIpCache)
           
 
Method Summary
 AtomicReference<NodeMetadata> apply(AtomicReference<NodeMetadata> input)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger
Constructor Detail

AllocateAndAddFloatingIpToNode

@Inject
public AllocateAndAddFloatingIpToNode(@Named(value="jclouds.compute.timeout.node-running")
                                             com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning,
                                             NovaApi novaApi,
                                             @Named(value="FLOATINGIP")
                                             com.google.common.cache.LoadingCache<ZoneAndId,Iterable<FloatingIP>> floatingIpCache)
Method Detail

apply

public AtomicReference<NodeMetadata> apply(AtomicReference<NodeMetadata> input)
Specified by:
apply in interface com.google.common.base.Function<AtomicReference<NodeMetadata>,AtomicReference<NodeMetadata>>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.