com.atlassian.bamboo.plan
Class ExecutableAgentsHelperImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.ExecutableAgentsHelperImpl
All Implemented Interfaces:
ExecutableAgentsHelper

public class ExecutableAgentsHelperImpl
extends java.lang.Object
implements ExecutableAgentsHelper


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.plan.ExecutableAgentsHelper
ExecutableAgentsHelper.ExecutableQuery, ExecutableAgentsHelper.ExecutorQuery
 
Constructor Summary
ExecutableAgentsHelperImpl(CachedPlanManager cachedPlanManager, ExecutionStatusProvider executionStatusProvider, AgentManager agentManager, com.atlassian.plugin.PluginAccessor pluginAccessor, AgentAssignmentService agentAssignmentService, CapabilityRequirementsMatcher capabilityRequirementsMatcher, CapabilitySetManager capabilitySetManager, ElasticInstanceManager elasticInstanceManager, ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)
           
 
Method Summary
 java.util.Collection<BuildAgent> getExecutableAgents(ExecutableAgentsHelper.ExecutorQuery executorQuery)
           
 ExecutableAgentsMatrix getExecutableAgentsMatrix(ExecutableAgentsHelper.ExecutorQuery executorQuery)
           
 java.util.Collection<ImmutableBuildable> getExecutableBuildables(ExecutableAgentsHelper.ExecutableQuery executableQuery)
          Collection of buildables for which this agent can execute.
 java.util.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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutableAgentsHelperImpl

public ExecutableAgentsHelperImpl(CachedPlanManager cachedPlanManager,
                                  ExecutionStatusProvider executionStatusProvider,
                                  AgentManager agentManager,
                                  com.atlassian.plugin.PluginAccessor pluginAccessor,
                                  AgentAssignmentService agentAssignmentService,
                                  CapabilityRequirementsMatcher capabilityRequirementsMatcher,
                                  CapabilitySetManager capabilitySetManager,
                                  ElasticInstanceManager elasticInstanceManager,
                                  ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)
Method Detail

getExecutableAgents

public java.util.Collection<BuildAgent> getExecutableAgents(@NotNull
                                                            ExecutableAgentsHelper.ExecutorQuery executorQuery)
Specified by:
getExecutableAgents in interface ExecutableAgentsHelper

getExecutableAgentsMatrix

public ExecutableAgentsMatrix getExecutableAgentsMatrix(@NotNull
                                                        ExecutableAgentsHelper.ExecutorQuery executorQuery)
Specified by:
getExecutableAgentsMatrix in interface ExecutableAgentsHelper

getExecutableImages

public java.util.Collection<ElasticImageConfiguration> getExecutableImages(@NotNull
                                                                           ExecutableAgentsHelper.ExecutorQuery executorQuery)
Description copied from interface: ExecutableAgentsHelper
Calculates the list of elastic images that are capable of running an agent that can build a Buildable plan.

Specified by:
getExecutableImages in interface ExecutableAgentsHelper
Returns:

planHasExecutableAgents

public boolean planHasExecutableAgents(@NotNull
                                       PlanKey planKey,
                                       boolean includeDisabled)
Checks if a Buildable can be built on any active agent. This implementation utilises information already available in ExecutionStatus if it exists.

Specified by:
planHasExecutableAgents in interface ExecutableAgentsHelper
Parameters:
planKey -
includeDisabled - indicate whether disabled agents should be included in checking
Returns:

planHasExecutableAgents

public boolean planHasExecutableAgents(@NotNull
                                       PlanResultKey planResultKey)
Checks if a Job can be built on any active agent. This implementation utilises information already available in ExecutionStatus if it exists.

Specified by:
planHasExecutableAgents in interface ExecutableAgentsHelper
Parameters:
planResultKey -
Returns:

getExecutableBuildables

public java.util.Collection<ImmutableBuildable> getExecutableBuildables(@NotNull
                                                                        ExecutableAgentsHelper.ExecutableQuery executableQuery)
Description copied from interface: ExecutableAgentsHelper
Collection of buildables for which this agent can execute. Checks capabilities and agent assignments

Specified by:
getExecutableBuildables in interface ExecutableAgentsHelper


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.