org.jclouds.openstack.nova.v2_0.compute.loaders
Class LoadFloatingIpsForInstance

java.lang.Object
  extended by com.google.common.cache.CacheLoader<ZoneAndId,Iterable<? extends FloatingIP>>
      extended by org.jclouds.openstack.nova.v2_0.compute.loaders.LoadFloatingIpsForInstance

@Singleton
public class LoadFloatingIpsForInstance
extends com.google.common.cache.CacheLoader<ZoneAndId,Iterable<? extends FloatingIP>>

Each zone may or may not have the floating ip function present. In order to safely proceed, we must allow the user to determine if a zone has floating ip services before attempting to use them.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException
 
Constructor Summary
LoadFloatingIpsForInstance(NovaApi api)
           
 
Method Summary
 Iterable<? extends FloatingIP> load(ZoneAndId key)
           
 
Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadFloatingIpsForInstance

@Inject
public LoadFloatingIpsForInstance(NovaApi api)
Method Detail

load

public Iterable<? extends FloatingIP> load(ZoneAndId key)
                                    throws Exception
Specified by:
load in class com.google.common.cache.CacheLoader<ZoneAndId,Iterable<? extends FloatingIP>>
Throws:
Exception


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.