|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.repository.impl.DefaultCacheManager
A component that provides access to versioned resources based on an underlying file system.
Constructor Summary | |
DefaultCacheManager(File base,
ProxyContext context,
String[] hosts)
Creation of a new cache manager. |
Method Summary | |
Repository |
createRepository()
Creation of a new repository handler using teh default hosts. |
Repository |
createRepository(String[] hosts)
Creation of a new repository handler. |
File |
getCacheDirectory()
Return cache root directory. |
String[] |
getDefaultHosts()
Return the default hosts. |
BlockManifest |
install(URL url,
StringBuffer buffer)
Install a block archive into the repository. |
String |
toString()
Return the repository address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultCacheManager(File base, ProxyContext context, String[] hosts)
base
- the base directory for the repository cachecontext
- the proxy contexthosts
- the default hostsMethod Detail |
public File getCacheDirectory()
getCacheDirectory
in interface CacheManager
public String[] getDefaultHosts()
public Repository createRepository()
createRepository
in interface CacheManager
public Repository createRepository(String[] hosts)
createRepository
in interface CacheManager
hosts
- the set of hosts to assign to the repository
public BlockManifest install(URL url, StringBuffer buffer) throws RepositoryException
install
in interface CacheManager
url
- the block archive urlbuffer
- a string buffer against which messages may be logged
RepositoryException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |