|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArtifactHandler
Handles artifact storage. Should provide 'local' (i.e. per plan basis) and 'global' storage. Artifacts in 'global' storage should not be removed when producing result (plan) is removed.
Field Summary | |
---|---|
static int |
LAN_SPEED
|
static int |
LOCAL_SPEED
|
static int |
WAN_SPEED
|
Method Summary | |
---|---|
boolean |
canHandleArtifact(ArtifactDefinitionContext artifact,
java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
|
ArtifactLinkDataProvider |
getArtifactLinkDataProvider(Artifact artifact,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
|
ArtifactLinkDataProvider |
getArtifactLinkDataProvider(ArtifactLink artifactLink,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
|
java.util.Map<java.lang.String,java.lang.String> |
getDefaultConfiguration()
|
com.atlassian.plugin.ModuleDescriptor<ArtifactHandler> |
getModuleDescriptor()
|
int |
getSpeed(java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
|
java.util.Set<AgentType> |
getSupportedAgents()
|
boolean |
moveArtifactToGlobalStorage(Artifact artifact,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Move artifact to a 'global storage'. |
void |
populateContextForEdit(java.util.Map<java.lang.String,java.lang.Object> context)
|
void |
postProcessConfiguration(ActionParametersMap actionParametersMap)
Any configuration adjustments that need to happen before configuration is saved should be done here. |
boolean |
publish(PlanResultKey planResultKey,
ArtifactDefinitionContext artifact,
ArtifactPublishingConfig artifactPublishingConfig)
|
void |
removeArtifactFromStorage(Artifact artifact,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Removes artifact files for a single artifact. |
void |
removeArtifactFromStorage(PlanResultKey planResultKey,
ImmutableArtifactDefinitionBase artifact,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Removes artifact files for a single artifact. |
void |
removeArtifactsFromStorage(PlanKey planKey,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Removes artifact files for all results of a single. |
void |
removeArtifactsFromStorage(PlanResultKey planResultKey,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Removes artifact files for a single plan result. |
ArtifactRetrievalStatus |
retrieve(PlanResultKey planResultKey,
ResultKey clientKey,
ArtifactSubscriptionContext artifactSubscription,
ArtifactRetrievalConfig artifactRetrievalConfig)
Retrieve plan artifact. |
ArtifactRetrievalStatus |
retrieve(ResultKey clientKey,
Artifact artifact,
ArtifactSubscriptionContext artifactSubscription,
ArtifactRetrievalConfig artifactRetrievalConfig)
Retrieve arbitrary Artifact . |
Field Detail |
---|
static final int LOCAL_SPEED
static final int LAN_SPEED
static final int WAN_SPEED
Method Detail |
---|
boolean publish(@NotNull PlanResultKey planResultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactPublishingConfig artifactPublishingConfig) throws java.io.IOException
java.io.IOException
@NotNull ArtifactRetrievalStatus retrieve(@NotNull PlanResultKey planResultKey, @NotNull ResultKey clientKey, @NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull ArtifactRetrievalConfig artifactRetrievalConfig) throws java.io.IOException
planResultKey
- identifier of source planclientKey
- identifier of plan or deployment doing the downloadartifactSubscription
- download details (e.g. target path, copy pattern)artifactRetrievalConfig
- handler specific configuration
java.io.IOException
@NotNull ArtifactRetrievalStatus retrieve(@NotNull ResultKey clientKey, @NotNull Artifact artifact, @NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull ArtifactRetrievalConfig artifactRetrievalConfig) throws java.io.IOException
Artifact
. Artifact is found by the information in artifact parameter.
clientKey
- identifier of plan or deployment doing the downloadartifact
- artifact informationartifactSubscription
- download details (e.g. target path, copy pattern)artifactRetrievalConfig
- handler specific configuration
java.io.IOException
@NotNull java.util.Set<AgentType> getSupportedAgents()
void populateContextForEdit(@NotNull java.util.Map<java.lang.String,java.lang.Object> context)
@NotNull com.atlassian.plugin.ModuleDescriptor<ArtifactHandler> getModuleDescriptor()
boolean canHandleArtifact(ArtifactDefinitionContext artifact, java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
@NotNull java.util.Map<java.lang.String,java.lang.String> getDefaultConfiguration()
int getSpeed(@NotNull java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
void removeArtifactFromStorage(@NotNull Artifact artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
void removeArtifactFromStorage(@NotNull PlanResultKey planResultKey, @NotNull ImmutableArtifactDefinitionBase artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
ArtifactLink
Should not remove artifacts that were moved to global storage.
void removeArtifactsFromStorage(@NotNull PlanResultKey planResultKey, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
ResultsSummary
Should not remove artifacts that were moved to global storage.
void removeArtifactsFromStorage(@NotNull PlanKey planKey, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Plan
Should not remove artifacts that were moved to global storage.
boolean moveArtifactToGlobalStorage(@NotNull Artifact artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
removeArtifactFromStorage(Artifact, ArtifactHandlerConfigProvider)
is called.
It is not a requirement to physically move the files as long as the above contract is fulfilled.
artifact
-
@Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(ArtifactLink artifactLink, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
@Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(Artifact artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
void postProcessConfiguration(ActionParametersMap actionParametersMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |