org.jboss.virtual.plugins.cache
Class IterableVFSCache

java.lang.Object
  extended by org.jboss.virtual.plugins.cache.AbstractVFSCache
      extended by org.jboss.virtual.plugins.cache.IterableVFSCache
All Implemented Interfaces:
CacheStatistics, VFSCache
Direct Known Subclasses:
MapVFSCache

public abstract class IterableVFSCache
extends AbstractVFSCache

Iterable vfs cache. Knows how to iterate over cache keys, matching them to uri's path.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache
log
 
Constructor Summary
IterableVFSCache()
           
 
Method Summary
 VFSContext findContext(URI uri)
          Find the context based on uri.
protected abstract  Iterable<String> getKeys()
          Get cache keys.
 
Methods inherited from class org.jboss.virtual.plugins.cache.AbstractVFSCache
check, findContext, getContext, lastInsert, putContext, putContext, readLock, readUnlock, removeContext, removeContext, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.virtual.spi.cache.VFSCache
flush, start, stop
 
Methods inherited from interface org.jboss.virtual.spi.cache.CacheStatistics
getCachedContexts, size
 

Constructor Detail

IterableVFSCache

public IterableVFSCache()
Method Detail

getKeys

protected abstract Iterable<String> getKeys()
Get cache keys.

Returns:
the cache keys

findContext

public VFSContext findContext(URI uri)
Description copied from interface: VFSCache
Find the context based on uri.

Parameters:
uri - the uri
Returns:
found context or null


Copyright © 2011 JBoss, A division of Red Hat, Inc. All Rights Reserved.