Class UnknownAgentDescription

    • Constructor Detail

      • UnknownAgentDescription

        public UnknownAgentDescription()
    • Method Detail

      • 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
      • isCaseInsensitiveEnvironment

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

        @NotNull
        public String getOperatingSystemName()
        Description copied from interface: AgentDescription
        Returns name of the operating system where the agent is currently running.
        Specified by:
        getOperatingSystemName in interface AgentDescription
        Returns:
        name of the operating system where the agent is currently running.
      • getCpuBenchmarkIndex

        public int getCpuBenchmarkIndex()
        Description copied from interface: AgentDescription
        Returns this agent CPU benchmark index. The higher this value the more powerful agent CPU.
        Specified by:
        getCpuBenchmarkIndex in interface AgentDescription
        Returns:
        CPU index or -1 if index is not available
      • 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