public class ArtifactCleanupFeature extends Object implements RepositoryFeature<ArtifactCleanupFeature>
Constructor and Description |
---|
ArtifactCleanupFeature() |
ArtifactCleanupFeature(boolean deleteReleasedSnapshots,
Period retentionPeriod,
int retentionCount) |
Modifier and Type | Method and Description |
---|---|
ArtifactCleanupFeature |
get()
Returns the concrete feature instance.
|
int |
getRetentionCount()
Sets the number of (snapshot) artifacts that should be kept, even if they are older
than the retention time.
|
Period |
getRetentionPeriod()
Returns the amount of time after that, the (snapshot) artifacts can be deleted.
|
boolean |
isDeleteReleasedSnapshots()
Returns true, if snapshot artifacts should be deleted, when artifacts with release version
exist in one of the managed repositories.
|
void |
setDeleteReleasedSnapshots(boolean deleteReleasedSnapshots)
Sets the flag for the deletion of released snapshot artifacts.
|
void |
setRetentionCount(int retentionCount)
Sets the number of artifacts that should be kept and not be deleted.
|
void |
setRetentionPeriod(Period retentionPeriod)
Sets time period, after that artifacts can be deleted.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, isFeature, isFeature
public ArtifactCleanupFeature()
public ArtifactCleanupFeature(boolean deleteReleasedSnapshots, Period retentionPeriod, int retentionCount)
public ArtifactCleanupFeature get()
RepositoryFeature
get
in interface RepositoryFeature<ArtifactCleanupFeature>
public boolean isDeleteReleasedSnapshots()
public void setDeleteReleasedSnapshots(boolean deleteReleasedSnapshots)
deleteReleasedSnapshots
- public Period getRetentionPeriod()
public void setRetentionPeriod(Period retentionPeriod)
retentionPeriod
- public int getRetentionCount()
public void setRetentionCount(int retentionCount)
retentionCount
- Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.