Package com.atlassian.bamboo.plan
Class ExecutableAgentsHelper.ExecutorQuery
- java.lang.Object
-
- com.atlassian.bamboo.plan.ExecutableAgentsHelper.ExecutorQuery
-
- Enclosing interface:
- ExecutableAgentsHelper
public static class ExecutableAgentsHelper.ExecutorQuery extends Object
-
-
Method Summary
-
-
-
Method Detail
-
withDisabledIncluded
public ExecutableAgentsHelper.ExecutorQuery withDisabledIncluded()
-
withDisabledExcluded
public ExecutableAgentsHelper.ExecutorQuery withDisabledExcluded()
-
withOfflineIncluded
public ExecutableAgentsHelper.ExecutorQuery withOfflineIncluded()
-
withOfflineExcluded
public ExecutableAgentsHelper.ExecutorQuery withOfflineExcluded()
-
newQueryWithoutAssignments
public static ExecutableAgentsHelper.ExecutorQuery newQueryWithoutAssignments(@NotNull @NotNull ImmutableRequirementSet requirements)
Creates a new query that will match the supplied requirements, but not assignments unlesss specifically added. By default, disabled and offline executors will not be included.- Parameters:
requirements
-- Returns:
-
newQuery
public static ExecutableAgentsHelper.ExecutorQuery newQuery(@NotNull @NotNull ImmutableRequirementSet requirements, @NotNull AgentAssignmentService.AgentAssignmentExecutable executable)
Creates a new query that will match executors using the supplied requirements and assignments. By default, disabled and offline executors will not be included.
-
newQuery
@Deprecated public static ExecutableAgentsHelper.ExecutorQuery newQuery(@NotNull @NotNull MinimalRequirementSet requirements, @NotNull AgentAssignmentService.AgentAssignmentExecutable executable)
Deprecated.Creates a new query that will match executors using the supplied requirements and assignments. By default, disabled and offline executors will not be included.
-
getRequirements
@NotNull public @NotNull ImmutableRequirementSet getRequirements()
-
withAssignmentsFor
public ExecutableAgentsHelper.ExecutorQuery withAssignmentsFor(Iterable<AgentAssignmentService.AgentAssignmentExecutable> executables)
-
withContext
public ExecutableAgentsHelper.ExecutorQuery withContext(CommonContext context)
-
areDisabledIncluded
public boolean areDisabledIncluded()
-
areOfflineIncluded
public boolean areOfflineIncluded()
-
getAssignedExecutables
@Nullable public @Nullable Iterable<AgentAssignmentService.AgentAssignmentExecutable> getAssignedExecutables()
-
getContext
@Nullable public @Nullable CommonContext getContext()
-
-