org.apache.archiva.consumers.core.repository
Class DaysOldRepositoryPurge
java.lang.Object
org.apache.archiva.consumers.core.repository.AbstractRepositoryPurge
org.apache.archiva.consumers.core.repository.DaysOldRepositoryPurge
- All Implemented Interfaces:
- RepositoryPurge
public class DaysOldRepositoryPurge
- extends AbstractRepositoryPurge
Purge from repository all snapshots older than the specified days in the repository configuration.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timestampParser
private SimpleDateFormat timestampParser
daysOlder
private int daysOlder
retentionCount
private int retentionCount
DaysOldRepositoryPurge
public DaysOldRepositoryPurge(ManagedRepositoryContent repository,
int daysOlder,
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
uniqueSnapshotToCalendar
private Calendar uniqueSnapshotToCalendar(String version)
doPurgeAllRelated
private void doPurgeAllRelated(ArtifactReference reference)
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.