public interface ExecutableAgentsMatrix
| Modifier and Type | Method and Description |
|---|---|
void |
addBuildAgent(BuildAgent buildAgent)
Record an agent matching ALL requirements
|
void |
addBuildAgents(Collection<BuildAgent> buildAgents)
Record a collection of agents matching ALL requirements
|
void |
addDedicatedNonMatchingBuildAgent(BuildAgent buildAgent)
Record build agent dedicated to the job/plan/project but not satisfying all requirements
|
void |
addDedicatedNonMatchingImage(ElasticImageConfiguration elasticImageConfiguration)
Record image configuration dedicated to the job/plan/project but not satisfying all requirements
|
void |
addImageMatch(ElasticImageConfiguration imageMatch)
Record an image that matches all requirements
|
void |
addImageToMatrix(String requirementKey,
ElasticImageConfiguration image)
Record an image matching a requirement.
|
void |
addRequirementWithNoAgentMatch(Requirement requirement)
Record a requirement that does not have any matching agents.
|
void |
addRequirementWithNoImageMatch(Requirement requirement)
Record a requirement that does not have any matching image.
|
SortedSet<BuildAgent> |
getBuildAgents()
Get a set of agents that match ALL requirements.
|
Collection<BuildAgent> |
getBuildAgents(String requirementKey) |
SortedSet<BuildAgent> |
getDedicatedNonMatchingBuildAgents() |
List<ElasticImageConfiguration> |
getDedicatedNonMatchingImages() |
Collection<ElasticImageConfiguration> |
getImageFromMatrix(String requirementKey) |
List<ElasticImageConfiguration> |
getImageMatches()
Get a set of elastic images that match ALL requirements.
|
Collection<BuildAgent> |
getOnlineEnabledBuildAgents()
Get a set of agents that match ALL requirements AND are currently enabled and online.
|
int |
getRequirementCount() |
Set<Requirement> |
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(String requirementKey,
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
BuildAgent buildAgent)
buildAgent - that matchesvoid addBuildAgents(@NotNull
Collection<BuildAgent> buildAgents)
buildAgents - that matchvoid addImageMatch(@NotNull
ElasticImageConfiguration imageMatch)
imageMatch - image that matchesvoid addImageToMatrix(@NotNull
String requirementKey,
@NotNull
ElasticImageConfiguration image)
requirementKey - for requirement that matchesimage - that matchesvoid put(@NotNull
String requirementKey,
@NotNull
BuildAgent agent)
requirementKey - of requirement matchedagent - that matches@NotNull SortedSet<BuildAgent> getBuildAgents()
@Nullable Collection<BuildAgent> getBuildAgents(@NotNull String requirementKey)
requirementKey - of requirement@NotNull List<ElasticImageConfiguration> getImageMatches()
@Nullable Collection<ElasticImageConfiguration> getImageFromMatrix(@NotNull String requirementKey)
requirementKey - of requirement@NotNull Collection<BuildAgent> getOnlineEnabledBuildAgents()
void addRequirementWithNoAgentMatch(@NotNull
Requirement requirement)
requirement - that didn't have a matchvoid addRequirementWithNoImageMatch(@NotNull
Requirement requirement)
requirement - that didn't have a match@NotNull Set<Requirement> 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
ElasticImageConfiguration elasticImageConfiguration)
elasticImageConfiguration - void addDedicatedNonMatchingBuildAgent(@NotNull
BuildAgent buildAgent)
buildAgent - @NotNull SortedSet<BuildAgent> getDedicatedNonMatchingBuildAgents()
@NotNull List<ElasticImageConfiguration> getDedicatedNonMatchingImages()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.