public class DaysOldRepositoryPurge extends AbstractRepositoryPurge
AbstractRepositoryPurge.ArtifactInfo
Modifier and Type | Field and Description |
---|---|
private int |
daysOlder |
private int |
retentionCount |
private SimpleDateFormat |
timestampParser |
listeners, log, repository, repositorySession
Constructor and Description |
---|
DaysOldRepositoryPurge(ManagedRepositoryContent repository,
int daysOlder,
int retentionCount,
RepositorySession repositorySession,
List<RepositoryListener> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
process(String path)
Perform checking on artifact for repository purge
|
private Calendar |
uniqueSnapshotToCalendar(String version) |
deleteArtifactFiles, purge
private SimpleDateFormat timestampParser
private int daysOlder
private int retentionCount
public DaysOldRepositoryPurge(ManagedRepositoryContent repository, int daysOlder, int retentionCount, RepositorySession repositorySession, List<RepositoryListener> listeners)
public void process(String path) throws RepositoryPurgeException
RepositoryPurge
path
- path to the scanned artifactRepositoryPurgeException
private Calendar uniqueSnapshotToCalendar(String version)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.