public class ExecutableAgentsMatrixImpl extends Object implements ExecutableAgentsMatrix
| Constructor and Description | 
|---|
ExecutableAgentsMatrixImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addBuildAgent(@NotNull BuildAgent buildAgent)
Record an agent matching ALL requirements 
 | 
void | 
addBuildAgents(@NotNull Collection<BuildAgent> buildAgents)
Record a collection of agents matching ALL requirements 
 | 
void | 
addDedicatedNonMatchingBuildAgent(@NotNull BuildAgent buildAgent)
Record build agent dedicated to the job/plan/project but not satisfying all requirements 
 | 
void | 
addDedicatedNonMatchingImage(@NotNull ElasticImageConfiguration elasticImageConfiguration)
Record image configuration dedicated to the job/plan/project but not satisfying all requirements 
 | 
void | 
addImageMatch(@NotNull ElasticImageConfiguration imageMatch)
Record an image that matches all requirements 
 | 
void | 
addImageToMatrix(@NotNull String requirementKey,
                @NotNull ElasticImageConfiguration image)
Record an image matching a requirement. 
 | 
void | 
addRequirementWithNoAgentMatch(@NotNull ImmutableRequirement requirement)
Record a requirement that does not have any matching agents. 
 | 
void | 
addRequirementWithNoImageMatch(@NotNull ImmutableRequirement requirement)
Record a requirement that does not have any matching image. 
 | 
@NotNull SortedSet<BuildAgent> | 
getBuildAgents()
Get a set of agents that match ALL requirements. 
 | 
@Nullable Collection<BuildAgent> | 
getBuildAgents(@NotNull String key)  | 
@NotNull SortedSet<BuildAgent> | 
getDedicatedNonMatchingBuildAgents()  | 
@NotNull List<ElasticImageConfiguration> | 
getDedicatedNonMatchingImages()  | 
@Nullable Collection<ElasticImageConfiguration> | 
getImageFromMatrix(@NotNull String requirementKey)  | 
@NotNull List<ElasticImageConfiguration> | 
getImageMatches()
Get a set of elastic images that match ALL requirements. 
 | 
@NotNull Collection<BuildAgent> | 
getOnlineEnabledBuildAgents()
Get a set of agents that match ALL requirements AND are currently enabled and online. 
 | 
int | 
getRequirementCount()  | 
@NotNull Set<ImmutableRequirement> | 
getRequirementsWithNoMatches()
Retrieve a list of all requirements which were not matched by any agent or image. 
 | 
boolean | 
isElasticBambooEnabled()
Check if elastic support is enabled 
 | 
void | 
put(@NotNull String key,
   @NotNull BuildAgent value)
Record an agent matching a requirement. 
 | 
void | 
setElasticBambooEnabled(boolean elasticBambooEnabled)
Mark whether elastic support is enabled or not 
 | 
void | 
setRequirementCount(int requirementCount)  | 
public void put(@NotNull
                @NotNull String key,
                @NotNull
                @NotNull BuildAgent value)
ExecutableAgentsMatrixput in interface ExecutableAgentsMatrixkey - of requirement matchedvalue - that matches@Nullable public @Nullable Collection<BuildAgent> getBuildAgents(@NotNull @NotNull String key)
getBuildAgents in interface ExecutableAgentsMatrixkey - of requirement@NotNull public @NotNull SortedSet<BuildAgent> getBuildAgents()
ExecutableAgentsMatrixgetBuildAgents in interface ExecutableAgentsMatrix@NotNull public @NotNull Collection<BuildAgent> getOnlineEnabledBuildAgents()
ExecutableAgentsMatrixgetOnlineEnabledBuildAgents in interface ExecutableAgentsMatrixpublic void addBuildAgent(@NotNull
                          @NotNull BuildAgent buildAgent)
ExecutableAgentsMatrixaddBuildAgent in interface ExecutableAgentsMatrixbuildAgent - that matchespublic void addBuildAgents(@NotNull
                           @NotNull Collection<BuildAgent> buildAgents)
ExecutableAgentsMatrixaddBuildAgents in interface ExecutableAgentsMatrixbuildAgents - that matchpublic void addRequirementWithNoAgentMatch(@NotNull
                                           @NotNull ImmutableRequirement requirement)
ExecutableAgentsMatrixaddRequirementWithNoAgentMatch in interface ExecutableAgentsMatrixrequirement - that didn't have a matchpublic void addRequirementWithNoImageMatch(@NotNull
                                           @NotNull ImmutableRequirement requirement)
ExecutableAgentsMatrixaddRequirementWithNoImageMatch in interface ExecutableAgentsMatrixrequirement - that didn't have a match@NotNull public @NotNull Set<ImmutableRequirement> getRequirementsWithNoMatches()
ExecutableAgentsMatrixgetRequirementsWithNoMatches in interface ExecutableAgentsMatrixpublic void setElasticBambooEnabled(boolean elasticBambooEnabled)
ExecutableAgentsMatrixsetElasticBambooEnabled in interface ExecutableAgentsMatrixelasticBambooEnabled - whether elastic bamboo is enabledpublic boolean isElasticBambooEnabled()
ExecutableAgentsMatrixisElasticBambooEnabled in interface ExecutableAgentsMatrixpublic int getRequirementCount()
getRequirementCount in interface ExecutableAgentsMatrixpublic void setRequirementCount(int requirementCount)
setRequirementCount in interface ExecutableAgentsMatrixrequirementCount - How many requirements were used to generate this matrix@NotNull public @NotNull List<ElasticImageConfiguration> getImageMatches()
ExecutableAgentsMatrixgetImageMatches in interface ExecutableAgentsMatrixpublic void addImageMatch(@NotNull
                          @NotNull ElasticImageConfiguration imageMatch)
ExecutableAgentsMatrixaddImageMatch in interface ExecutableAgentsMatriximageMatch - image that matches@Nullable public @Nullable Collection<ElasticImageConfiguration> getImageFromMatrix(@NotNull @NotNull String requirementKey)
getImageFromMatrix in interface ExecutableAgentsMatrixrequirementKey - of requirementpublic void addImageToMatrix(@NotNull
                             @NotNull String requirementKey,
                             @NotNull
                             @NotNull ElasticImageConfiguration image)
ExecutableAgentsMatrixaddImageToMatrix in interface ExecutableAgentsMatrixrequirementKey - for requirement that matchesimage - that matchespublic void addDedicatedNonMatchingImage(@NotNull
                                         @NotNull ElasticImageConfiguration elasticImageConfiguration)
ExecutableAgentsMatrixaddDedicatedNonMatchingImage in interface ExecutableAgentsMatrixpublic void addDedicatedNonMatchingBuildAgent(@NotNull
                                              @NotNull BuildAgent buildAgent)
ExecutableAgentsMatrixaddDedicatedNonMatchingBuildAgent in interface ExecutableAgentsMatrix@NotNull public @NotNull SortedSet<BuildAgent> getDedicatedNonMatchingBuildAgents()
getDedicatedNonMatchingBuildAgents in interface ExecutableAgentsMatrix@NotNull public @NotNull List<ElasticImageConfiguration> getDedicatedNonMatchingImages()
getDedicatedNonMatchingImages in interface ExecutableAgentsMatrixCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.