org.jclouds.cloudstack.functions
Class ZoneIdToZone

java.lang.Object
  extended by com.google.common.cache.CacheLoader<Long,Zone>
      extended by org.jclouds.cloudstack.functions.ZoneIdToZone

public class ZoneIdToZone
extends com.google.common.cache.CacheLoader<Long,Zone>

Defines a cache that allows a zone to be looked up by its ID.

Author:
Richard Downer

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException
 
Constructor Summary
ZoneIdToZone(CloudStackClient client)
           
 
Method Summary
 Zone load(Long zoneId)
           
 
Methods inherited from class com.google.common.cache.CacheLoader
from, from, loadAll, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoneIdToZone

@Inject
public ZoneIdToZone(CloudStackClient client)
Method Detail

load

public Zone load(Long zoneId)
          throws Exception
Specified by:
load in class com.google.common.cache.CacheLoader<Long,Zone>
Throws:
Exception


Copyright © 2009-2012 jclouds. All Rights Reserved.