org.apache.archiva.consumers.core.repository
Class RetentionCountRepositoryPurge
java.lang.Object
org.apache.archiva.consumers.core.repository.AbstractRepositoryPurge
org.apache.archiva.consumers.core.repository.RetentionCountRepositoryPurge
- All Implemented Interfaces:
- RepositoryPurge
public class RetentionCountRepositoryPurge
- extends AbstractRepositoryPurge
Purge the repository by retention count. Retain only the specified number of snapshots.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
retentionCount
private int retentionCount
RetentionCountRepositoryPurge
public RetentionCountRepositoryPurge(ManagedRepositoryContent repository,
int retentionCount,
RepositorySession repositorySession,
List<RepositoryListener> listeners)
process
public void process(String path)
throws RepositoryPurgeException
- Description copied from interface:
RepositoryPurge
- Perform checking on artifact for repository purge
- Parameters:
path
- path to the scanned artifact
- Throws:
RepositoryPurgeException
doPurgeAllRelated
private void doPurgeAllRelated(ArtifactReference reference,
String version)
throws LayoutException
- Throws:
LayoutException
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.