public interface ExecutableAgentsMatrix
| 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 requirementKey) |
@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 requirementKey,
@NotNull BuildAgent agent)
Record an agent matching a requirement.
|
void |
setElasticBambooEnabled(boolean elasticBambooEnabled)
Mark whether elastic support is enabled or not
|
void |
setRequirementCount(int requirementCount) |
void addBuildAgent(@NotNull
@NotNull BuildAgent buildAgent)
buildAgent - that matchesvoid addBuildAgents(@NotNull
@NotNull Collection<BuildAgent> buildAgents)
buildAgents - that matchvoid addImageMatch(@NotNull
@NotNull ElasticImageConfiguration imageMatch)
imageMatch - image that matchesvoid addImageToMatrix(@NotNull
@NotNull String requirementKey,
@NotNull
@NotNull ElasticImageConfiguration image)
requirementKey - for requirement that matchesimage - that matchesvoid put(@NotNull
@NotNull String requirementKey,
@NotNull
@NotNull BuildAgent agent)
requirementKey - of requirement matchedagent - that matches@NotNull @NotNull SortedSet<BuildAgent> getBuildAgents()
@Nullable @Nullable Collection<BuildAgent> getBuildAgents(@NotNull @NotNull String requirementKey)
requirementKey - of requirement@NotNull @NotNull List<ElasticImageConfiguration> getImageMatches()
@Nullable @Nullable Collection<ElasticImageConfiguration> getImageFromMatrix(@NotNull @NotNull String requirementKey)
requirementKey - of requirement@NotNull @NotNull Collection<BuildAgent> getOnlineEnabledBuildAgents()
void addRequirementWithNoAgentMatch(@NotNull
@NotNull ImmutableRequirement requirement)
requirement - that didn't have a matchvoid addRequirementWithNoImageMatch(@NotNull
@NotNull ImmutableRequirement requirement)
requirement - that didn't have a match@NotNull @NotNull Set<ImmutableRequirement> getRequirementsWithNoMatches()
void setElasticBambooEnabled(boolean elasticBambooEnabled)
elasticBambooEnabled - whether elastic bamboo is enabledboolean isElasticBambooEnabled()
int getRequirementCount()
void setRequirementCount(int requirementCount)
requirementCount - How many requirements were used to generate this matrixvoid addDedicatedNonMatchingImage(@NotNull
@NotNull ElasticImageConfiguration elasticImageConfiguration)
elasticImageConfiguration - void addDedicatedNonMatchingBuildAgent(@NotNull
@NotNull BuildAgent buildAgent)
buildAgent - @NotNull @NotNull SortedSet<BuildAgent> getDedicatedNonMatchingBuildAgents()
@NotNull @NotNull List<ElasticImageConfiguration> getDedicatedNonMatchingImages()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.