org.japtproxy.packagepool
Interface PackagePool

All Known Implementing Classes:
DiskPackagePool

public interface PackagePool

The PackagePool interface defines methods to operate with the package pool. The package pool contains all the packages this proxy is responsible for.

Version:
$LastChangedRevision:79 $
Author:
Oliver J. Siegmar

Method Summary
 boolean exists(Backend backend, java.lang.String resourceName)
          Checks if a resource name already exists.
 PoolObject getPoolObject(Backend backend, java.lang.String resourceName)
          Returns a PoolObject for the given resource name.
 void removeOldPackages(Backend backend, java.lang.String resourceName)
          Remove old versions of a resource.
 

Method Detail

exists

boolean exists(Backend backend,
               java.lang.String resourceName)
               throws java.io.IOException
Checks if a resource name already exists.

Parameters:
resourceName - the resource name to test.
Returns:
true if the resource with the given name exists.
Throws:
java.io.IOException - is thrown if the lookup failed.

getPoolObject

PoolObject getPoolObject(Backend backend,
                         java.lang.String resourceName)
                         throws java.io.IOException
Returns a PoolObject for the given resource name.

Parameters:
resourceName - the resource name.
Returns:
the PoolObject for the given resource name.
Throws:
java.io.IOException - is thrown if the lookup failed.

removeOldPackages

void removeOldPackages(Backend backend,
                       java.lang.String resourceName)
Remove old versions of a resource.

Parameters:
resourceName - the resource name.
maxVersion - the maximum amount of versions allowed to exist.


Copyright © 2006-2008. All Rights Reserved.