org.apache.avalon.repository.provider
Interface CacheManager

All Known Implementing Classes:
DefaultCacheManager

public interface CacheManager

A service that provides write access to a cache and support for repository creation.

Version:
$Revision: 1.2 $ $Date: 2003/12/07 03:15:16 $
Author:
Stephen McConnell

Method Summary
 Repository createRepository()
          Creation of a new repository handler using the default hosts.
 Repository createRepository(String[] hosts)
          Creation of a new repository handler.
 File getCacheDirectory()
          Return cache root directory.
 BlockManifest install(URL url, StringBuffer buffer)
          Install a block archive into the repository.
 

Method Detail

getCacheDirectory

public File getCacheDirectory()
Return cache root directory.

Returns:
the cache directory

install

public BlockManifest install(URL url,
                             StringBuffer buffer)
                      throws RepositoryException
Install a block archive into the repository.

Parameters:
url - the block archive url
Returns:
the block manifest
Throws:
RepositoryException

createRepository

public Repository createRepository()
Creation of a new repository handler using the default hosts.

Returns:
the repository

createRepository

public Repository createRepository(String[] hosts)
Creation of a new repository handler.

Parameters:
hosts - the set of hosts to assign to the repository
Returns:
the repository


Copyright © Apache Software Foundation. All Rights Reserved.