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 ArtifactDirectoryBuildergetArtifactDirectoryBuilder(@NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)protected StringgetConfigurationKey(String key)longgetMaxUnarchivedFilesPerArtifact(@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 ArtifactHandlerPublishingResultpublish(@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:
getConfigurationKeyin 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:
publishin interfaceArtifactHandler- Overrides:
publishin classAbstractLocalArtifactHandler- Throws:
IOException
-
getArtifactDirectoryBuilder
protected ArtifactDirectoryBuilder getArtifactDirectoryBuilder(@NotNull @NotNull ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
- Specified by:
getArtifactDirectoryBuilderin classAbstractLocalArtifactHandler
-
getMaxUnarchivedFilesPerArtifact
public long getMaxUnarchivedFilesPerArtifact(@NotNull @NotNull Map<String,String> artifactHandlersConfiguration)Description copied from interface:ArtifactHandlerReturns 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.
ArtifactHandlerdoes 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_ARCHIVEif packaging of artifacts is disabled, to always send files unarchived.- Specified by:
getMaxUnarchivedFilesPerArtifactin interfaceArtifactHandler- Overrides:
getMaxUnarchivedFilesPerArtifactin classAbstractArtifactHandler- Parameters:
artifactHandlersConfiguration- artifact handler configuration- Returns:
- maximum number of files per artifact that should not be packaged into a single file
-
-