com.atlassian.bamboo.task.runtime
Class RuntimeTaskDefinitionImpl

java.lang.Object
  extended by com.atlassian.bamboo.task.TaskDefinitionImpl
      extended by com.atlassian.bamboo.task.runtime.RuntimeTaskDefinitionImpl
All Implemented Interfaces:
RuntimeTaskDefinition, TaskDefinition, TaskIdentifier, Serializable

@Internal
public class RuntimeTaskDefinitionImpl
extends TaskDefinitionImpl
implements RuntimeTaskDefinition

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.atlassian.bamboo.task.TaskDefinition
DISABLED, ENABLED
 
Constructor Summary
RuntimeTaskDefinitionImpl(TaskDefinition t)
           
RuntimeTaskDefinitionImpl(TaskDefinition t, Map<String,String> runtimeContext, boolean producesTestResults)
           
 
Method Summary
 boolean doesTaskProduceTestResults()
           
static com.google.common.base.Function<TaskDefinition,RuntimeTaskDefinition> fromTaskDefinition()
           
 Map<String,String> getRuntimeContext()
           
 void setProducesTestResults(boolean producesTestResults)
           
 void setRuntimeContext(Map<String,String> runtimeContext)
           
 
Methods inherited from class com.atlassian.bamboo.task.TaskDefinitionImpl
compareTo, equals, getConfiguration, getId, getPluginKey, getRootDirectorySelector, getUserDescription, hashCode, isEnabled, isFinalising, setConfiguration, setEnabled, setFinalising, setRootDirectorySelector, setUserDescription, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.task.TaskDefinition
getConfiguration, getRootDirectorySelector, setConfiguration, setEnabled, setFinalising, setRootDirectorySelector, setUserDescription
 
Methods inherited from interface com.atlassian.bamboo.task.TaskIdentifier
getId, getPluginKey, getUserDescription, isEnabled, isFinalising
 

Constructor Detail

RuntimeTaskDefinitionImpl

public RuntimeTaskDefinitionImpl(@NotNull
                                 TaskDefinition t,
                                 @Nullable
                                 Map<String,String> runtimeContext,
                                 boolean producesTestResults)

RuntimeTaskDefinitionImpl

public RuntimeTaskDefinitionImpl(@NotNull
                                 TaskDefinition t)
Method Detail

getRuntimeContext

@NotNull
public Map<String,String> getRuntimeContext()
Specified by:
getRuntimeContext in interface RuntimeTaskDefinition
Returns:
custom runtime data that complement static task configuration

doesTaskProduceTestResults

public boolean doesTaskProduceTestResults()
Specified by:
doesTaskProduceTestResults in interface RuntimeTaskDefinition
Returns:
true iff task is expected to produce test results

setRuntimeContext

public void setRuntimeContext(Map<String,String> runtimeContext)

setProducesTestResults

public void setProducesTestResults(boolean producesTestResults)

fromTaskDefinition

public static com.google.common.base.Function<TaskDefinition,RuntimeTaskDefinition> fromTaskDefinition()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.