com.atlassian.bamboo.task
Class TaskExecutionContext

java.lang.Object
  extended by com.atlassian.bamboo.task.TaskExecutionContext

public class TaskExecutionContext
extends java.lang.Object


Constructor Summary
TaskExecutionContext(java.util.Queue<TaskDefinition> tasks, TaskExecutionStrategy executionStrategy, CommonContext commonContext, ReadOnlyCapabilitySet capabilities, BuildLoggerManager buildLoggerManager, java.io.File defaultRootDirectory)
           
 
Method Summary
 BuildContext getBuildContext()
           
 BuildLogger getBuildLogger()
           
 ReadOnlyCapabilitySet getCapabilities()
           
 CommonContext getCommonContext()
           
 java.io.File getDefaultRootDirectory()
           
 DeploymentContext getDeploymentContext()
           
 TaskDefinition getNextTaskToExecute()
           
 java.io.File getRootDirectory()
           
 boolean hasTasksToExecute(TaskResult taskResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskExecutionContext

public TaskExecutionContext(java.util.Queue<TaskDefinition> tasks,
                            TaskExecutionStrategy executionStrategy,
                            @NotNull
                            CommonContext commonContext,
                            ReadOnlyCapabilitySet capabilities,
                            BuildLoggerManager buildLoggerManager,
                            java.io.File defaultRootDirectory)
Method Detail

hasTasksToExecute

public boolean hasTasksToExecute(@Nullable
                                 TaskResult taskResult)

getNextTaskToExecute

public TaskDefinition getNextTaskToExecute()

getBuildContext

@Nullable
public BuildContext getBuildContext()

getCommonContext

@NotNull
public CommonContext getCommonContext()

getDeploymentContext

@Nullable
public DeploymentContext getDeploymentContext()

getCapabilities

@NotNull
public ReadOnlyCapabilitySet getCapabilities()

getBuildLogger

@NotNull
public BuildLogger getBuildLogger()

getRootDirectory

@NotNull
public java.io.File getRootDirectory()
Returns:
root of working directory as defined in Job configuration

getDefaultRootDirectory

@NotNull
public java.io.File getDefaultRootDirectory()
Returns:
default root of working directory defined as ${bamboo.agentWorkingDir}/${bamboo.planKey}


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.