public class ExecutableAgentsHelperImpl extends Object implements ExecutableAgentsHelper
ExecutableAgentsHelper.ExecutableQuery, ExecutableAgentsHelper.ExecutorQuery
Constructor and Description |
---|
ExecutableAgentsHelperImpl(CachedPlanManager cachedPlanManager,
ExecutionStatusProvider executionStatusProvider,
com.atlassian.plugin.PluginAccessor pluginAccessor,
AgentAssignmentService agentAssignmentService,
CapabilityRequirementsMatcher capabilityRequirementsMatcher,
CapabilitySetManager capabilitySetManager,
ElasticInstanceManager elasticInstanceManager,
ElasticImageConfigurationAccessor elasticImageConfigurationAccessor) |
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 active agent.
|
boolean |
planHasExecutableAgents(PlanResultKey planResultKey)
Checks if a Job can be built on any active agent.
|
public ExecutableAgentsHelperImpl(CachedPlanManager cachedPlanManager, ExecutionStatusProvider executionStatusProvider, com.atlassian.plugin.PluginAccessor pluginAccessor, AgentAssignmentService agentAssignmentService, CapabilityRequirementsMatcher capabilityRequirementsMatcher, CapabilitySetManager capabilitySetManager, ElasticInstanceManager elasticInstanceManager, ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)
public Collection<BuildAgent> getExecutableAgents(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)
getExecutableAgents
in interface ExecutableAgentsHelper
public ExecutableAgentsMatrix getExecutableAgentsMatrix(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)
getExecutableAgentsMatrix
in interface ExecutableAgentsHelper
public boolean isAgentEligibleForReceivingJobs(long agentId)
isAgentEligibleForReceivingJobs
in interface ExecutableAgentsHelper
public Collection<ElasticImageConfiguration> getExecutableImages(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)
ExecutableAgentsHelper
getExecutableImages
in interface ExecutableAgentsHelper
public boolean planHasExecutableAgents(@NotNull PlanKey planKey, boolean includeDisabled)
planHasExecutableAgents
in interface ExecutableAgentsHelper
planKey
- includeDisabled
- indicate whether disabled agents should be included in checkingpublic boolean planHasExecutableAgents(@NotNull PlanResultKey planResultKey)
planHasExecutableAgents
in interface ExecutableAgentsHelper
planResultKey
- public Collection<ImmutableBuildable> getExecutableBuildables(@NotNull ExecutableAgentsHelper.ExecutableQuery executableQuery)
ExecutableAgentsHelper
getExecutableBuildables
in interface ExecutableAgentsHelper
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.