Class UnknownAgentDescription
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.UnknownAgentDescription
-
- All Implemented Interfaces:
AgentDescription
public class UnknownAgentDescription extends Object implements AgentDescription
- Author:
- Eugene Petrenko Created: 12.02.2010 20:13:49
-
-
Constructor Summary
Constructors Constructor Description UnknownAgentDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAvailableParameters()Returns map of parameters available on the agent.StringgetAvailableParameterValue(String parameterName)Returns value of a single available parameter.Set<String>getAvailableRunTypeIds()Returns set of runner types available on the agentList<RunType>getAvailableRunTypes()Returns list of runners available on the agentList<String>getAvailableVcsPlugins()Map<String,String>getBuildParameters()Returns map of build parameters that will be added to the build parameters when build is started on the agent.Map<String,String>getConfigurationParameters()Returns map of configuration parameters that are defined on the build agent.intgetCpuBenchmarkIndex()Returns this agent CPU benchmark index.intgetCpuCount()Returns the number of CPUs of this agentMap<String,String>getDefinedParameters()Returns map of parameters explicitly defined in the agent configuration file.StringgetOperatingSystemName()Returns name of the operating system where the agent is currently running.booleanisCaseInsensitiveEnvironment()
-
-
-
Method Detail
-
getAvailableParameters
@NotNull public Map<String,String> getAvailableParameters()
Description copied from interface:AgentDescriptionReturns 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:
getAvailableParametersin interfaceAgentDescription- Returns:
- see above
-
getAvailableParameterValue
@Nullable public String getAvailableParameterValue(@NotNull String parameterName)
Description copied from interface:AgentDescriptionReturns value of a single available parameter. This is equivalent to {@link #getAvailableParameters().get(name)} but can work faster.- Specified by:
getAvailableParameterValuein interfaceAgentDescription- Parameters:
parameterName- name of the parameter- Returns:
- see above
-
getDefinedParameters
@NotNull public Map<String,String> getDefinedParameters()
Description copied from interface:AgentDescriptionReturns map of parameters explicitly defined in the agent configuration file.- Specified by:
getDefinedParametersin interfaceAgentDescription- Returns:
- see above
-
getConfigurationParameters
@NotNull public Map<String,String> getConfigurationParameters()
Description copied from interface:AgentDescriptionReturns 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:
getConfigurationParametersin interfaceAgentDescription- Returns:
- map of parameters
-
getBuildParameters
@NotNull public Map<String,String> getBuildParameters()
Description copied from interface:AgentDescriptionReturns map of build parameters that will be added to the build parameters when build is started on the agent. Keys in the map have prefixesConstants.SYSTEM_PREFIXorConstants.ENV_PREFIX- Specified by:
getBuildParametersin interfaceAgentDescription- Returns:
- map of build parameters.
-
isCaseInsensitiveEnvironment
public boolean isCaseInsensitiveEnvironment()
- Specified by:
isCaseInsensitiveEnvironmentin interfaceAgentDescription- Returns:
- true if names of environment variables are case insensitive
-
getAvailableRunTypes
@NotNull public List<RunType> getAvailableRunTypes()
Description copied from interface:AgentDescriptionReturns list of runners available on the agent- Specified by:
getAvailableRunTypesin interfaceAgentDescription- Returns:
- list of runners ordered by display name
-
getAvailableRunTypeIds
@NotNull public Set<String> getAvailableRunTypeIds()
Description copied from interface:AgentDescriptionReturns set of runner types available on the agent- Specified by:
getAvailableRunTypeIdsin interfaceAgentDescription- Returns:
- set of runner types
-
getAvailableVcsPlugins
@NotNull public List<String> getAvailableVcsPlugins()
- Specified by:
getAvailableVcsPluginsin interfaceAgentDescription
-
getOperatingSystemName
@NotNull public String getOperatingSystemName()
Description copied from interface:AgentDescriptionReturns name of the operating system where the agent is currently running.- Specified by:
getOperatingSystemNamein interfaceAgentDescription- Returns:
- name of the operating system where the agent is currently running.
-
getCpuBenchmarkIndex
public int getCpuBenchmarkIndex()
Description copied from interface:AgentDescriptionReturns this agent CPU benchmark index. The higher this value the more powerful agent CPU.- Specified by:
getCpuBenchmarkIndexin interfaceAgentDescription- Returns:
- CPU index or -1 if index is not available
-
getCpuCount
public int getCpuCount()
Description copied from interface:AgentDescriptionReturns the number of CPUs of this agent- Specified by:
getCpuCountin interfaceAgentDescription- Returns:
- number of CPUs or -1 if count is not available
-
-