Class AgentTypeProperties
- java.lang.Object
-
- jetbrains.buildServer.serverSide.agentTypes.AgentDescriptionBase
-
- jetbrains.buildServer.serverSide.agentTypes.AgentTypeProperties
-
- All Implemented Interfaces:
AgentDescription
,MutableAgentDescription
public final class AgentTypeProperties extends AgentDescriptionBase implements AgentDescription
Properties of agent type.Value object.
-
-
Constructor Summary
Constructors Constructor Description AgentTypeProperties(AgentTypeKey key, String operatingSystemName, int cpuBenchmarkIndex, Collection<RunType> availableRunTypes, Set<String> availableVcsPlugins, Map<String,String> buildParameters, Map<String,String> configParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.int
getCpuBenchmarkIndex()
Returns this agent CPU benchmark index.AgentTypeKey
getKey()
String
getOperatingSystemName()
Returns name of the operating system where the agent is currently running.int
hashCode()
-
Methods inherited from class jetbrains.buildServer.serverSide.agentTypes.AgentDescriptionBase
getAvailableParameters, getAvailableParameterValue, getCpuCount, getDefinedParameters, isCaseInsensitiveEnvironment, isCaseInsensitiveEnvironment, isEphemeral, updateParameters
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.AgentDescription
getAvailableParameters, getAvailableParameterValue, getCpuCount, getDefinedParameters, isCaseInsensitiveEnvironment
-
-
-
-
Constructor Detail
-
AgentTypeProperties
public AgentTypeProperties(@NotNull AgentTypeKey key, @NotNull String operatingSystemName, int cpuBenchmarkIndex, @NotNull Collection<RunType> availableRunTypes, @NotNull Set<String> availableVcsPlugins, @NotNull Map<String,String> buildParameters, @NotNull Map<String,String> configParameters)
-
-
Method Detail
-
getKey
@NotNull public AgentTypeKey getKey()
-
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 interfaceAgentDescription
- 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 interfaceAgentDescription
- Returns:
- CPU index or -1 if index is not available
-
getAvailableRunTypes
@NotNull public List<RunType> getAvailableRunTypes()
Description copied from interface:AgentDescription
Returns list of runners available on the agent- Specified by:
getAvailableRunTypes
in interfaceAgentDescription
- Returns:
- list of runners ordered by display name
-
getAvailableRunTypeIds
@NotNull public Set<String> getAvailableRunTypeIds()
Description copied from interface:AgentDescription
Returns set of runner types available on the agent- Specified by:
getAvailableRunTypeIds
in interfaceAgentDescription
- Returns:
- set of runner types
-
getAvailableVcsPlugins
@NotNull public List<String> getAvailableVcsPlugins()
- Specified by:
getAvailableVcsPlugins
in interfaceAgentDescription
-
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 interfaceAgentDescription
- Overrides:
getConfigurationParameters
in classAgentDescriptionBase
- Returns:
- map of parameters
-
getBuildParameters
@NotNull public Map<String,String> getBuildParameters()
Description copied from interface:AgentDescription
Returns 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_PREFIX
orConstants.ENV_PREFIX
- Specified by:
getBuildParameters
in interfaceAgentDescription
- Overrides:
getBuildParameters
in classAgentDescriptionBase
- Returns:
- map of build parameters.
-
-