com.atlassian.bamboo.plan
Interface ExecutableAgentsHelper

All Known Implementing Classes:
ExecutableAgentsHelperImpl

public interface ExecutableAgentsHelper

Utility class to determine which agents can build a Plan


Nested Class Summary
static class ExecutableAgentsHelper.ExecutableQuery
           
static class ExecutableAgentsHelper.ExecutorQuery
           
 
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 defined agent.
 boolean planHasExecutableAgents(PlanResultKey planResultKey)
          Checks if a Buildable can be built on any active agent.
 

Method Detail

planHasExecutableAgents

boolean planHasExecutableAgents(@NotNull
                                PlanKey planKey,
                                boolean includeDisabled)
Checks if a Buildable can be built on any defined agent.

Parameters:
planKey -
includeDisabled - indicate whether disabled agents should be included in checking
Returns:
Throws:
java.lang.IllegalArgumentException - if planKey is not a Buildable key

planHasExecutableAgents

boolean planHasExecutableAgents(@NotNull
                                PlanResultKey planResultKey)
Checks if a Buildable can be built on any active agent.

Parameters:
planResultKey -
Returns:
Throws:
java.lang.IllegalArgumentException - if planResultKey is not a key of running Job

getExecutableImages

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

Parameters:
requirements -
Returns:

getExecutableAgents

java.util.Collection<BuildAgent> getExecutableAgents(@NotNull
                                                     ExecutableAgentsHelper.ExecutorQuery executorQuery)

getExecutableAgentsMatrix

ExecutableAgentsMatrix getExecutableAgentsMatrix(@NotNull
                                                 ExecutableAgentsHelper.ExecutorQuery executorQuery)

getExecutableBuildables

java.util.Collection<ImmutableBuildable> getExecutableBuildables(ExecutableAgentsHelper.ExecutableQuery executableQuery)
Collection of buildables for which this agent can execute. Checks capabilities and agent assignments



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