org.jboss.virtual.spi.cache
Interface VFSCache

All Known Implementing Classes:
AbstractVFSCache, CachePolicyVFSCache, CombinedVFSCache, IterableTimedVFSCache, IterableVFSCache, LRUVFSCache, MapVFSCache, NoopVFSCache, PathMatchingVFSCache, SoftRefVFSCache, TimedVFSCache, WeakRefVFSCache

public interface VFSCache

Simple vfs cache interface.

Author:
Ales Justin

Method Summary
 VFSContext findContext(URI uri)
          Find the context based on uri.
 VFSContext findContext(URL url)
          Find the context based on url.
 void flush()
          Flush the cache.
 void putContext(VFSContext context)
          Put vfs context to cache.
 void removeContext(VFSContext context)
          Remove vfs context from cache.
 void start()
          Start the cache.
 void stop()
          Stop the cache.
 

Method Detail

findContext

VFSContext findContext(URI uri)
Find the context based on uri.

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

findContext

VFSContext findContext(URL url)
Find the context based on url.

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

putContext

void putContext(VFSContext context)
Put vfs context to cache.

Parameters:
context - the vfs context

removeContext

void removeContext(VFSContext context)
Remove vfs context from cache.

Parameters:
context - the vfs context

start

void start()
           throws Exception
Start the cache.

Throws:
Exception - for any error

stop

void stop()
Stop the cache.


flush

void flush()
Flush the cache.



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