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 |
removeArtifactFromStorage(PlanResultKey planResultKey,
ImmutableArtifactDefinitionBase 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.
|
void |
removeArtifactsFromStorage(PlanResultKey planResultKey)
Removes artifact files for a single plan result.
|
boolean |
removeOrphanedArtifacts() |
findMatchingArtifact, getArtifactHandlers, getArtifactHandlersForAgent, publish, publish, publishFileSet, retrieve, retrieve, validateArtifactsSize
protected void markSubscriptionAsConsumed(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription, String artifactLinkType)
markSubscriptionAsConsumed
in class AbstractArtifactManager
public void moveArtifactToGlobalStorage(@NotNull Artifact artifact) throws IOException
ArtifactManager
ArtifactManager.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 ArtifactManager
moveArtifactToGlobalStorage
in class AbstractArtifactManager
IOException
public void removeArtifactFromStorage(@NotNull PlanResultKey planResultKey, @NotNull ImmutableArtifactDefinitionBase artifact)
ArtifactManager
removeArtifactFromStorage
in interface ArtifactManager
removeArtifactFromStorage
in class AbstractArtifactManager
public void removeArtifactFromStorage(@NotNull Artifact artifact)
ArtifactManager
removeArtifactFromStorage
in interface ArtifactManager
removeArtifactFromStorage
in class AbstractArtifactManager
public void removeArtifactsFromStorage(@NotNull PlanKey planKey)
ArtifactManager
Plan
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage
in interface ArtifactManager
removeArtifactsFromStorage
in class AbstractArtifactManager
public void removeArtifactsFromStorage(@NotNull PlanResultKey planResultKey)
ArtifactManager
ResultsSummary
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage
in interface ArtifactManager
removeArtifactsFromStorage
in class AbstractArtifactManager
public void removeArtifactsFromStorage(Iterable<ArtifactLink> artifactLinks)
ArtifactManager
ResultsSummary
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage
in interface ArtifactManager
removeArtifactsFromStorage
in class AbstractArtifactManager
public boolean removeOrphanedArtifacts()
removeOrphanedArtifacts
in interface ArtifactManager
removeOrphanedArtifacts
in class AbstractArtifactManager
public void cleanupTemporaryArtifactStorage()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.