public class AgentAvailabilityHintHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getAgentUnavailabilityHint(ExecutableAgentsHelper executableAgentsHelper,
ElasticFunctionalityFacade elasticFunctionalityFacade,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
com.atlassian.core.i18n.I18nTextProvider textProvider,
ImmutableJob job,
boolean assumeInstanceForEveryImage)
Returns a string describing the reason for which a job can't (won't) be built.
|
@Nullable public static String getAgentUnavailabilityHint(@NotNull ExecutableAgentsHelper executableAgentsHelper, @NotNull ElasticFunctionalityFacade elasticFunctionalityFacade, @NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor, @NotNull com.atlassian.core.i18n.I18nTextProvider textProvider, @NotNull ImmutableJob job, boolean assumeInstanceForEveryImage)
executableAgentsHelper
- the executableAgentsHelper beanelasticFunctionalityFacade
- the elasticFunctionalityFacade beanadministrationConfigurationAccessor
- the administrationConfigurationAccessor beantextProvider
- the textProvider beanjob
- the job for which agent availability will be checkedassumeInstanceForEveryImage
- if set to true, having an available EC2 image is treated as having an available EC2 agentCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.