Class AgentAvailabilityHintHelper


  • public class AgentAvailabilityHintHelper
    extends Object
    • Method Detail

      • getAgentUnavailabilityHint

        @Nullable
        public static @Nullable String getAgentUnavailabilityHint​(@NotNull
                                                                  @NotNull ExecutableAgentsHelper executableAgentsHelper,
                                                                  @NotNull
                                                                  @NotNull ElasticFunctionalityFacade elasticFunctionalityFacade,
                                                                  @NotNull
                                                                  @NotNull AdministrationConfigurationAccessor administrationConfigurationAccessor,
                                                                  @NotNull
                                                                  @NotNull com.atlassian.core.i18n.I18nTextProvider textProvider,
                                                                  @NotNull
                                                                  @NotNull ImmutableJob job,
                                                                  boolean assumeInstanceForEveryImage)
        Returns a string describing the reason for which a job can't (won't) be built.
        Parameters:
        executableAgentsHelper - the executableAgentsHelper bean
        elasticFunctionalityFacade - the elasticFunctionalityFacade bean
        administrationConfigurationAccessor - the administrationConfigurationAccessor bean
        textProvider - the textProvider bean
        job - the job for which agent availability will be checked
        assumeInstanceForEveryImage - if set to true, having an available EC2 image is treated as having an available EC2 agent
        Returns:
        null if agent is (can be made) available, a String describing the unavailability reason