Class AbstractRepublishingArtifactHandler
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
-
- com.atlassian.bamboo.build.artifact.AbstractRepublishingArtifactHandler
-
- All Implemented Interfaces:
ArtifactHandler
,InitablePluginModule<ArtifactHandlerModuleDescriptor>
,BambooPluginModule
- Direct Known Subclasses:
BambooRemoteArtifactHandler
,S3ArtifactHandler
public abstract class AbstractRepublishingArtifactHandler extends AbstractArtifactHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteTransferFallbackArtifactHandler
fallbackArtifactHandler
-
Fields inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
ALL_AGENT_TYPES, LOCAL_AGENTS, NON_LOCAL_AGENTS
-
Fields inherited from interface com.atlassian.bamboo.build.artifact.ArtifactHandler
LAN_SPEED, LOCAL_SPEED, NEVER_ARCHIVE, WAN_SPEED
-
-
Constructor Summary
Constructors Constructor Description AbstractRepublishingArtifactHandler(Set<AgentType> supportedAgents, RemoteTransferFallbackArtifactHandler fallbackArtifactHandler)
AbstractRepublishingArtifactHandler(Set<AgentType> supportedAgents, String fallbackHandlerPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull ArtifactHandlerPublishingResult
checkIfNothingWasPublished(@Nullable BuildLogger buildLogger, ArtifactHandlerPublishingResult result, org.apache.log4j.Logger log)
protected @NotNull ArtifactHandlerPublishingResult
copyToFallbackStorageIfDeferred(@NotNull ResultKey resultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactPublishingConfig artifactPublishingConfig, @Nullable BuildLogger buildLogger, @NotNull ArtifactHandlerPublishingResult result, @NotNull org.apache.log4j.Logger log)
protected org.apache.tools.ant.types.FileSet
getFileSetFromFallbackStorage(@NotNull ArtifactHandlerPublishingResult previousPublishingResult, @NotNull ResultKey resultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider, @NotNull org.apache.log4j.Logger log)
protected BuildLogger
makeNotNull(@Nullable BuildLogger buildLogger)
-
Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
canHandleArtifact, configProvider, configProvider, getConfigurationKey, getConfigValue, getDefaultConfiguration, getMaxUnarchivedFilesPerArtifact, getModuleDescriptor, getSupportedAgents, init
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.build.artifact.ArtifactHandler
getArtifactLinkDataProvider, getArtifactLinkDataProvider, getSpeed, moveArtifactToGlobalStorage, publish, publish, removeAllArtifactsOfChain, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactsFromStorage, removeArtifactsFromStorage, retrieve
-
-
-
-
Field Detail
-
fallbackArtifactHandler
protected final RemoteTransferFallbackArtifactHandler fallbackArtifactHandler
-
-
Constructor Detail
-
AbstractRepublishingArtifactHandler
public AbstractRepublishingArtifactHandler(Set<AgentType> supportedAgents, String fallbackHandlerPath)
-
AbstractRepublishingArtifactHandler
public AbstractRepublishingArtifactHandler(Set<AgentType> supportedAgents, RemoteTransferFallbackArtifactHandler fallbackArtifactHandler)
-
-
Method Detail
-
getFileSetFromFallbackStorage
protected org.apache.tools.ant.types.FileSet getFileSetFromFallbackStorage(@NotNull @NotNull ArtifactHandlerPublishingResult previousPublishingResult, @NotNull @NotNull ResultKey resultKey, @NotNull @NotNull ArtifactDefinitionContext artifact, @NotNull @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider, @NotNull @NotNull org.apache.log4j.Logger log) throws IOException
- Throws:
IOException
-
checkIfNothingWasPublished
@NotNull protected @NotNull ArtifactHandlerPublishingResult checkIfNothingWasPublished(@Nullable @Nullable BuildLogger buildLogger, ArtifactHandlerPublishingResult result, org.apache.log4j.Logger log)
-
copyToFallbackStorageIfDeferred
@NotNull protected @NotNull ArtifactHandlerPublishingResult copyToFallbackStorageIfDeferred(@NotNull @NotNull ResultKey resultKey, @NotNull @NotNull ArtifactDefinitionContext artifact, @NotNull @NotNull ArtifactPublishingConfig artifactPublishingConfig, @Nullable @Nullable BuildLogger buildLogger, @NotNull @NotNull ArtifactHandlerPublishingResult result, @NotNull @NotNull org.apache.log4j.Logger log)
-
makeNotNull
protected BuildLogger makeNotNull(@Nullable @Nullable BuildLogger buildLogger)
-
-