com.atlassian.bamboo.build.artifact
Class AbtractLocalArtifactHandler

java.lang.Object
  extended by com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
      extended by com.atlassian.bamboo.build.artifact.AbtractLocalArtifactHandler
All Implemented Interfaces:
ArtifactHandler, InitablePluginModule<ArtifactHandlerModuleDescriptor>, BambooPluginModule
Direct Known Subclasses:
AgentLocalArtifactHandler, ServerLocalArtifactHandler

public abstract class AbtractLocalArtifactHandler
extends AbstractArtifactHandler


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, WAN_SPEED
 
Constructor Summary
AbtractLocalArtifactHandler(java.util.Set<AgentType> supportedAgents)
           
 
Method Summary
protected abstract  ArtifactStorage getArtifactStorage(java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
           
protected  java.io.File getArtifactStorageDirectory(PlanResultKey planResultKey, ArtifactDefinitionContext artifact, java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
           
 int getSpeed(java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
           
 boolean publish(org.apache.tools.ant.types.FileSet sourceFileSet, PlanResultKey planResultKey, ArtifactDefinitionContext artifact, java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
           
 ArtifactRetrievalStatus retrieve(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription, java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration, java.io.File buildWorkingDirectory)
           
 
Methods inherited from class com.atlassian.bamboo.build.artifact.AbstractArtifactHandler
canServeArtifact, getConfigValue, getDefaultConfiguration, getEditHtml, getModuleDescriptor, getSupportedAgents, init, setTemplateRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbtractLocalArtifactHandler

public AbtractLocalArtifactHandler(java.util.Set<AgentType> supportedAgents)
Method Detail

publish

public boolean publish(@NotNull
                       org.apache.tools.ant.types.FileSet sourceFileSet,
                       @NotNull
                       PlanResultKey planResultKey,
                       @NotNull
                       ArtifactDefinitionContext artifact,
                       @NotNull
                       java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
                throws java.io.IOException
Throws:
java.io.IOException

retrieve

@NotNull
public ArtifactRetrievalStatus retrieve(@NotNull
                                                PlanResultKey planResultKey,
                                                @NotNull
                                                ArtifactSubscriptionContext artifactSubscription,
                                                @NotNull
                                                java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration,
                                                @NotNull
                                                java.io.File buildWorkingDirectory)
                                 throws java.io.IOException
Throws:
java.io.IOException

getArtifactStorageDirectory

protected java.io.File getArtifactStorageDirectory(PlanResultKey planResultKey,
                                                   ArtifactDefinitionContext artifact,
                                                   java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)

getArtifactStorage

protected abstract ArtifactStorage getArtifactStorage(java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)

getSpeed

public int getSpeed(@NotNull
                    java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)


Copyright © 2012 Atlassian. All Rights Reserved.