|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskManager
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. |
Method Detail |
---|
@NotNull java.util.List<TaskModuleDescriptor> getAvailableTaskDescriptors()
@Nullable TaskModuleDescriptor getTaskDescriptor(@Nullable java.lang.String pluginKey)
pluginKey
- - key to match
void calculateRequirementsForTaskDefinition(@NotNull Job job, @NotNull TaskDefinition taskDefinition)
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
job
- taskDefinition
- void removeRequirementsForTaskDefinition(@NotNull Buildable buildable, @NotNull TaskDefinition taskDefinition)
Requirement
s that belong to the TaskDefinition
buildable
- taskDefinition
- @NotNull java.util.Collection<Requirement> getTasksRequirements(@NotNull Job job)
Requirement
s for all tasks of Buildable
if the TaskConfigurator
is an implementor of BuildTaskRequirementSupport
job@throws
- IllegalStateException
boolean taskProducesTestResults(@NotNull TaskDefinition taskDefinition)
TaskDefinition
is configured to produce test results.
taskDefinition
-
java.util.Map<java.lang.String,java.lang.String> getExecutableLabelTypeMap()
void updateRepositoryIdsInTask(@NotNull Job job, @NotNull TaskDefinition taskDefinition, @NotNull java.util.Map<java.lang.Long,java.lang.Long> repositoryIdChanges)
job
- taskDefinition
- repositoryIdChanges
- mapping between old and new repositories idsvoid updateWorkingDirSelectors(@NotNull Buildable job, @NotNull BuildDefinition buildDefinition, @NotNull java.util.Map<java.lang.Long,java.lang.Long> repositoryIdsChanges)
job
- affected jobbuildDefinition
- repositoryIdsChanges
- mapping between old and new repositories ids
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |