org.dasein.cloud.services.storage
Class StorageCache

java.lang.Object
  extended by org.dasein.cloud.services.storage.StorageCache

public class StorageCache
extends Object

Caches the files stored in cloud storage so that not every call needs to go into the cloud.

Author:
George Reese @ enStratus (http://www.enstratus.com)

Nested Class Summary
static class StorageCache.CacheEntry
           
 
Constructor Summary
StorageCache(StorageServices services)
           
 
Method Summary
 boolean isStale()
           
 Iterable<CloudStoreObject> list()
           
 Iterable<CloudStoreObject> list(CloudStoreObject directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageCache

public StorageCache(StorageServices services)
Method Detail

list

public Iterable<CloudStoreObject> list()
                                throws CloudException,
                                       InternalException
Throws:
CloudException
InternalException

list

public Iterable<CloudStoreObject> list(CloudStoreObject directory)
                                throws CloudException,
                                       InternalException
Throws:
CloudException
InternalException

isStale

public boolean isStale()