|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.task.TaskManagerImpl
public class TaskManagerImpl
Constructor Summary | |
---|---|
TaskManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
CapabilitySetManager capabilitySetManager,
ElasticAccountBean elasticAccountBean)
|
Method Summary | |
---|---|
void |
calculateRequirementsForTaskDefinition(Job job,
TaskDefinition taskDefinition)
Attempts to add Requirement s to the specified Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport
If requirements are already present for the specified TaskDefinition they will be removed and recalculated |
java.util.List<TaskModuleDescriptor> |
getAvailableTaskDescriptors()
|
java.util.Map<java.lang.String,java.lang.String> |
getExecutableLabelTypeMap()
Returns a map of currently available "configured" executables - uniquely identified by a label. |
TaskModuleDescriptor |
getTaskDescriptor(java.lang.String pluginKey)
Get the task type descriptor matching a particular plugin key. |
java.util.Collection<Requirement> |
getTasksRequirements(Job job)
Return Requirement s for all tasks of Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport |
void |
removeRequirementsForTaskDefinition(Buildable buildable,
TaskDefinition taskDefinition)
Removes all the Requirement s that belong to the TaskDefinition |
boolean |
taskProducesTestResults(TaskDefinition taskDefinition)
Return true iff task defined in TaskDefinition is configured to produce test results. |
void |
updateRepositoryIdsInTask(Job job,
TaskDefinition taskDefinition,
java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
Updates task configurations affected by repository edition. |
void |
updateWorkingDirSelectors(Buildable job,
BuildDefinition buildDefinition,
java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges)
Calculates id of the repository that defines working directory after repository or task edition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, CapabilitySetManager capabilitySetManager, ElasticAccountBean elasticAccountBean)
Method Detail |
---|
@Nullable public TaskModuleDescriptor getTaskDescriptor(@Nullable java.lang.String pluginKey)
TaskManager
getTaskDescriptor
in interface TaskManager
pluginKey
- - key to match
@NotNull public java.util.List<TaskModuleDescriptor> getAvailableTaskDescriptors()
getAvailableTaskDescriptors
in interface TaskManager
public void calculateRequirementsForTaskDefinition(@NotNull Job job, @NotNull TaskDefinition taskDefinition)
TaskManager
Requirement
s to the specified Buildable
if the TaskConfigurator
is an implementor of BuildTaskRequirementSupport
If requirements are already present for the specified TaskDefinition
they will be removed and recalculated
calculateRequirementsForTaskDefinition
in interface TaskManager
public void removeRequirementsForTaskDefinition(@NotNull Buildable buildable, @NotNull TaskDefinition taskDefinition)
TaskManager
Requirement
s that belong to the TaskDefinition
removeRequirementsForTaskDefinition
in interface TaskManager
public void updateRepositoryIdsInTask(@NotNull Job job, @NotNull TaskDefinition taskDefinition, @NotNull java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
TaskManager
updateRepositoryIdsInTask
in interface TaskManager
repositoryIdChanges
- mapping between old and new repositories idspublic void updateWorkingDirSelectors(@NotNull Buildable job, @NotNull BuildDefinition buildDefinition, @NotNull java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges)
TaskManager
updateWorkingDirSelectors
in interface TaskManager
job
- affected jobrepositoryIdsChanges
- mapping between old and new repositories ids@NotNull public java.util.Collection<Requirement> getTasksRequirements(@NotNull Job job)
TaskManager
Requirement
s for all tasks of Buildable
if the TaskConfigurator
is an implementor of BuildTaskRequirementSupport
getTasksRequirements
in interface TaskManager
public boolean taskProducesTestResults(@NotNull TaskDefinition taskDefinition)
TaskManager
TaskDefinition
is configured to produce test results.
taskProducesTestResults
in interface TaskManager
public java.util.Map<java.lang.String,java.lang.String> getExecutableLabelTypeMap()
TaskManager
getExecutableLabelTypeMap
in interface TaskManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |