@Singleton public class IpAddressesLoadingCache extends com.google.common.cache.AbstractLoadingCache<String,String>
LoadingCache
for ip addresses. If the requested ip address has been
previously extracted this returns it, if not it calls vbox api.Constructor and Description |
---|
IpAddressesLoadingCache(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager) |
Modifier and Type | Method and Description |
---|---|
String |
get(String idOrName) |
String |
getIfPresent(Object key) |
apply, getAll, getUnchecked, refresh
asMap, cleanUp, get, getAllPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, stats
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Named(value="jclouds.compute") protected Logger logger
@Inject public IpAddressesLoadingCache(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager)
public String get(String idOrName) throws ExecutionException
ExecutionException
Copyright © 2009-2013 jclouds. All Rights Reserved.