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, BuildContext buildContext, ReadOnlyCapabilitySet capabilities, BuildLoggerManager buildLoggerManager, java.io.File defaultRootDirectory)
           
 
Method Summary
 BuildContext getBuildContext()
           
 BuildLogger getBuildLogger()
           
 ReadOnlyCapabilitySet getCapabilities()
           
 java.io.File getDefaultRootDirectory()
           
 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,
                            BuildContext buildContext,
                            ReadOnlyCapabilitySet capabilities,
                            BuildLoggerManager buildLoggerManager,
                            java.io.File defaultRootDirectory)
Method Detail

hasTasksToExecute

public boolean hasTasksToExecute(@Nullable
                                 TaskResult taskResult)

getNextTaskToExecute

public TaskDefinition getNextTaskToExecute()

getBuildContext

@NotNull
public BuildContext getBuildContext()

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 © 2012 Atlassian. All Rights Reserved.