public class LocalArtifactManager extends AbstractArtifactManager
ARTIFACT_SECURITY_TOKEN| Constructor and Description |
|---|
LocalArtifactManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupTemporaryArtifactStorage()
Cleanup temporary artifact storage
|
protected void |
markSubscriptionAsConsumed(PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
String artifactLinkType) |
void |
moveArtifactToGlobalStorage(Artifact artifact)
Move artifact to a 'global storage'.
|
void |
removeArtifactFromStorage(Artifact artifact)
Removes artifact files for a single artifact.
|
void |
removeArtifactsFromStorage(Iterable<ArtifactLink> artifactLinks)
Removes artifact files for all plan results attached to supplied links.
|
void |
removeArtifactsFromStorage(PlanKey planKey)
Removes artifact files for all results of a single.
|
boolean |
removeOrphanedArtifacts() |
findMatchingArtifact, getArtifactHandlers, getArtifactHandlersForAgent, publish, publishFileSet, retrieve, retrieve, validateArtifactsSizeprotected void markSubscriptionAsConsumed(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription, String artifactLinkType)
markSubscriptionAsConsumed in class AbstractArtifactManagerpublic void moveArtifactToGlobalStorage(@NotNull
Artifact artifact)
throws IOException
ArtifactManagerArtifactManager.removeArtifactFromStorage(Artifact) is called.
It is not a requirement to physically move the files as long as the above contract is fulfilled.moveArtifactToGlobalStorage in interface ArtifactManagermoveArtifactToGlobalStorage in class AbstractArtifactManagerIOExceptionpublic void removeArtifactFromStorage(@NotNull
Artifact artifact)
ArtifactManagerremoveArtifactFromStorage in interface ArtifactManagerremoveArtifactFromStorage in class AbstractArtifactManagerpublic void removeArtifactsFromStorage(@NotNull
PlanKey planKey)
ArtifactManagerPlan
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage in interface ArtifactManagerremoveArtifactsFromStorage in class AbstractArtifactManagerpublic void removeArtifactsFromStorage(Iterable<ArtifactLink> artifactLinks)
ArtifactManagerResultsSummary
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage in interface ArtifactManagerremoveArtifactsFromStorage in class AbstractArtifactManagerpublic boolean removeOrphanedArtifacts()
removeOrphanedArtifacts in interface ArtifactManagerremoveOrphanedArtifacts in class AbstractArtifactManagerpublic void cleanupTemporaryArtifactStorage()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.