Class ServerLocalArtifactHandler
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
-
- com.atlassian.bamboo.build.artifact.AbstractLocalArtifactHandler
-
- com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler
-
- All Implemented Interfaces:
ArtifactHandler
,InitablePluginModule<ArtifactHandlerModuleDescriptor>
,BambooPluginModule
public class ServerLocalArtifactHandler extends AbstractLocalArtifactHandler
-
-
Field Summary
-
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 ServerLocalArtifactHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ArtifactDirectoryBuilder
getArtifactDirectoryBuilder(@NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
protected String
getConfigurationKey(String key)
long
getMaxUnarchivedFilesPerArtifact(@NotNull Map<String,String> artifactHandlersConfiguration)
Returns the maximum number of files that can exist per artifact which will not be compressed and combined into a single archive.@NotNull ArtifactHandlerPublishingResult
publish(@NotNull ResultKey resultKey, @NotNull ArtifactDefinitionContext artifact, @NotNull ArtifactPublishingConfig artifactPublishingConfig, @Nullable BuildLogger buildLogger)
-
Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractLocalArtifactHandler
getArtifactLinkDataProvider, getArtifactLinkDataProvider, getArtifactStorageDirectory, getArtifactStorageDirectory, getSpeed, moveArtifactToGlobalStorage, removeAllArtifactsOfChain, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactFromStorage, removeArtifactsFromStorage, removeArtifactsFromStorage, retrieve
-
Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
canHandleArtifact, configProvider, configProvider, getConfigValue, getDefaultConfiguration, 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
publish
-
-
-
-
Method Detail
-
getConfigurationKey
protected String getConfigurationKey(String key)
- Overrides:
getConfigurationKey
in classAbstractArtifactHandler
-
publish
@NotNull public @NotNull ArtifactHandlerPublishingResult publish(@NotNull @NotNull ResultKey resultKey, @NotNull @NotNull ArtifactDefinitionContext artifact, @NotNull @NotNull ArtifactPublishingConfig artifactPublishingConfig, @Nullable @Nullable BuildLogger buildLogger) throws IOException
- Specified by:
publish
in interfaceArtifactHandler
- Overrides:
publish
in classAbstractLocalArtifactHandler
- Throws:
IOException
-
getArtifactDirectoryBuilder
protected ArtifactDirectoryBuilder getArtifactDirectoryBuilder(@NotNull @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
- Specified by:
getArtifactDirectoryBuilder
in classAbstractLocalArtifactHandler
-
getMaxUnarchivedFilesPerArtifact
public long getMaxUnarchivedFilesPerArtifact(@NotNull @NotNull Map<String,String> artifactHandlersConfiguration)
Description copied from interface:ArtifactHandler
Returns the maximum number of files that can exist per artifact which will not be compressed and combined into a single archive. If the threshold is exceeded, artifacts will be packaged into a single file before publishing.
ArtifactHandler
does not need to treat archived artifacts differently - from ArtifactHandler perspective the packaging is transparent. Artifact files will be compressed before invoking #publish method and decompressed after invoking #retrieve method.This method should return
ArtifactHandler.NEVER_ARCHIVE
if packaging of artifacts is disabled, to always send files unarchived.- Specified by:
getMaxUnarchivedFilesPerArtifact
in interfaceArtifactHandler
- Overrides:
getMaxUnarchivedFilesPerArtifact
in classAbstractArtifactHandler
- Parameters:
artifactHandlersConfiguration
- artifact handler configuration- Returns:
- maximum number of files per artifact that should not be packaged into a single file
-
-