@Internal
public interface ExecutableAgentsHelper
Modifier and Type | Interface and Description |
---|---|
static class |
ExecutableAgentsHelper.ExecutableQuery |
static class |
ExecutableAgentsHelper.ExecutorQuery |
Modifier and Type | Method and Description |
---|---|
Collection<BuildAgent> |
getExecutableAgents(ExecutableAgentsHelper.ExecutorQuery executorQuery) |
ExecutableAgentsMatrix |
getExecutableAgentsMatrix(ExecutableAgentsHelper.ExecutorQuery executorQuery) |
Collection<ImmutableBuildable> |
getExecutableBuildables(ExecutableAgentsHelper.ExecutableQuery executableQuery)
Collection of buildables for which this agent can execute.
|
Collection<ElasticImageConfiguration> |
getExecutableImages(ExecutableAgentsHelper.ExecutorQuery executorQuery)
Calculates the list of elastic images that are capable of running an agent that can build a Buildable plan.
|
boolean |
isAgentEligibleForReceivingJobs(long agentId) |
boolean |
planHasExecutableAgents(PlanKey planKey,
boolean includeDisabled)
Checks if a Buildable can be built on any defined agent.
|
boolean |
planHasExecutableAgents(PlanResultKey planResultKey)
Checks if a Buildable can be built on any active agent.
|
boolean planHasExecutableAgents(@NotNull PlanKey planKey, boolean includeDisabled)
planKey
- includeDisabled
- indicate whether disabled agents should be included in checkingIllegalArgumentException
- if planKey is not a Buildable keyboolean planHasExecutableAgents(@NotNull PlanResultKey planResultKey)
planResultKey
- IllegalArgumentException
- if planResultKey is not a key of running JobCollection<ElasticImageConfiguration> getExecutableImages(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)
Collection<BuildAgent> getExecutableAgents(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)
ExecutableAgentsMatrix getExecutableAgentsMatrix(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)
Collection<ImmutableBuildable> getExecutableBuildables(ExecutableAgentsHelper.ExecutableQuery executableQuery)
boolean isAgentEligibleForReceivingJobs(long agentId)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.