Class AgentDescriptionBase

    • Constructor Detail

      • AgentDescriptionBase

        protected AgentDescriptionBase​(@NotNull
                                       Map<String,​String> configParams,
                                       @NotNull
                                       Map<String,​String> buildParams,
                                       boolean caseInsensitiveEnv)
    • Method Detail

      • isCaseInsensitiveEnvironment

        public boolean isCaseInsensitiveEnvironment()
        Specified by:
        isCaseInsensitiveEnvironment in interface AgentDescription
        Returns:
        true if names of environment variables are case insensitive
      • isCaseInsensitiveEnvironment

        protected static boolean isCaseInsensitiveEnvironment​(@NotNull
                                                              String osName)
      • getAvailableParameters

        @NotNull
        public Map<String,​String> getAvailableParameters()
        Description copied from interface: AgentDescription
        Returns map of parameters available on the agent. These parameters include environment variables defined for the agent process as well as parameters defined in the agent configuration file.
        Specified by:
        getAvailableParameters in interface AgentDescription
        Returns:
        see above
      • getAvailableParameterValue

        @Nullable
        public String getAvailableParameterValue​(@NotNull
                                                 String parameterName)
        Description copied from interface: AgentDescription
        Returns value of a single available parameter. This is equivalent to {@link #getAvailableParameters().get(name)} but can work faster.
        Specified by:
        getAvailableParameterValue in interface AgentDescription
        Parameters:
        parameterName - name of the parameter
        Returns:
        see above
      • getConfigurationParameters

        @NotNull
        public Map<String,​String> getConfigurationParameters()
        Description copied from interface: AgentDescription
        Returns map of configuration parameters that are defined on the build agent. Those parameters may be defined in agent configuration files or may be provided by agent plugins.
        Specified by:
        getConfigurationParameters in interface AgentDescription
        Returns:
        map of parameters
      • getCpuCount

        public int getCpuCount()
        Description copied from interface: AgentDescription
        Returns the number of CPUs of this agent
        Specified by:
        getCpuCount in interface AgentDescription
        Returns:
        number of CPUs or -1 if count is not available
      • isEphemeral

        public boolean isEphemeral()
        Indicates whether these parameters only exist in memory and represent description of a particular agent
        Returns: