Package com.atlassian.bamboo.plan
Class ExecutableAgentsHelper.ExecutorQuery
java.lang.Object
com.atlassian.bamboo.plan.ExecutableAgentsHelper.ExecutorQuery
- Enclosing interface:
- ExecutableAgentsHelper
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
@Nullable CommonContext
@NotNull ImmutableRequirementSet
newQuery
(@NotNull MinimalRequirementSet requirements, AgentAssignmentService.AgentAssignmentExecutable executable) Deprecated.newQuery
(@NotNull ImmutableRequirementSet requirements, AgentAssignmentService.AgentAssignmentExecutable executable) Creates a new query that will match executors using the supplied requirements and assignments.newQueryWithoutAssignments
(@NotNull ImmutableRequirementSet requirements) Creates a new query that will match the supplied requirements, but not assignments unlesss specifically added.withContext
(CommonContext context)
-
Method Details
-
withDisabledIncluded
-
withDisabledExcluded
-
withOfflineIncluded
-
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
-
withAssignmentsFor
public ExecutableAgentsHelper.ExecutorQuery withAssignmentsFor(Iterable<AgentAssignmentService.AgentAssignmentExecutable> executables) -
withContext
-
areDisabledIncluded
public boolean areDisabledIncluded() -
areOfflineIncluded
public boolean areOfflineIncluded() -
getAssignedExecutables
@Nullable public @Nullable Iterable<AgentAssignmentService.AgentAssignmentExecutable> getAssignedExecutables() -
getContext
-
newQuery(ImmutableRequirementSet, AgentAssignmentService.AgentAssignmentExecutable)