Class ExecutorCalculator
java.lang.Object
com.atlassian.bamboo.v2.build.queue.ExecutorCalculator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<BuildAgent>
calculateExecutors
(@NotNull CommonContextMap.ContextWithMetadata contextWithMetadata) @NotNull Collection<BuildAgent>
calculateExecutors
(@NotNull CommonContextMap.ContextWithMetadata contextWithMetadata, @NotNull Collection<ElasticImageConfiguration> executableImages, @NotNull Collection<EphemeralAgentTemplate> executableTemplates) boolean
canExecute
(@NotNull BuildAgent agent, @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata) getExecutableEphemeralAgentTemplates
(@NotNull CommonContextMap.ContextWithMetadata contextWithMetadata) getExecutableImages
(CommonContextMap.ContextWithMetadata contextWithMetadata) @Nullable RequirementSet
getRequirementSet
(CommonContext context) boolean
isTemplateApplicableForQuery
(@NotNull CommonContextMap.ContextWithMetadata contextWithMetadata, @NotNull EphemeralAgentTemplate ephemeralAgentTemplate)
-
Constructor Details
-
ExecutorCalculator
public ExecutorCalculator()
-
-
Method Details
-
calculateExecutors
@NotNull public @NotNull Collection<BuildAgent> calculateExecutors(@NotNull @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata) -
calculateExecutors
@NotNull public @NotNull Collection<BuildAgent> calculateExecutors(@NotNull @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata, @NotNull @NotNull Collection<ElasticImageConfiguration> executableImages, @NotNull @NotNull Collection<EphemeralAgentTemplate> executableTemplates) -
getRequirementSet
-
canExecute
public boolean canExecute(@NotNull @NotNull BuildAgent agent, @NotNull @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata) -
getExecutableImages
public Collection<ElasticImageConfiguration> getExecutableImages(CommonContextMap.ContextWithMetadata contextWithMetadata) -
getExecutableEphemeralAgentTemplates
public Collection<EphemeralAgentTemplate> getExecutableEphemeralAgentTemplates(@NotNull @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata) -
isTemplateApplicableForQuery
public boolean isTemplateApplicableForQuery(@NotNull @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata, @NotNull @NotNull EphemeralAgentTemplate ephemeralAgentTemplate)
-