|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 Requirements 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 Requirements for all tasks of Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport |
void |
removeRequirementsForTaskDefinition(Buildable buildable,
TaskDefinition taskDefinition)
Removes all the Requirements 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 TaskManagerpluginKey - - key to match
@NotNull public java.util.List<TaskModuleDescriptor> getAvailableTaskDescriptors()
getAvailableTaskDescriptors in interface TaskManager
public void calculateRequirementsForTaskDefinition(@NotNull
Job job,
@NotNull
TaskDefinition taskDefinition)
TaskManagerRequirements 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)
TaskManagerRequirements 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 TaskManagerrepositoryIdChanges - mapping between old and new repositories ids
public void updateWorkingDirSelectors(@NotNull
Buildable job,
@NotNull
BuildDefinition buildDefinition,
@NotNull
java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges)
TaskManager
updateWorkingDirSelectors in interface TaskManagerjob - affected jobrepositoryIdsChanges - mapping between old and new repositories ids
@NotNull
public java.util.Collection<Requirement> getTasksRequirements(@NotNull
Job job)
TaskManagerRequirements for all tasks of Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport
getTasksRequirements in interface TaskManager
public boolean taskProducesTestResults(@NotNull
TaskDefinition taskDefinition)
TaskManagerTaskDefinition is configured to produce test results.
taskProducesTestResults in interface TaskManagerpublic 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 | |||||||||