Class MutableAgentDescriptionProxy
- java.lang.Object
-
- jetbrains.buildServer.serverSide.agentTypes.AgentDescriptionBase
-
- jetbrains.buildServer.serverSide.agentTypes.MutableAgentDescriptionProxy
-
- All Implemented Interfaces:
AgentDescription
,MutableAgentDescription
public class MutableAgentDescriptionProxy extends AgentDescriptionBase
- Author:
- Sergey.Pak Date: 17.06.20
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MutableAgentDescriptionProxy(AgentDescription proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAvailableRunTypeIds()
Returns set of runner types available on the agentList<RunType>
getAvailableRunTypes()
Returns list of runners available on the agentList<String>
getAvailableVcsPlugins()
int
getCpuBenchmarkIndex()
Returns this agent CPU benchmark index.int
getCpuCount()
Returns the number of CPUs of this agentString
getOperatingSystemName()
Returns name of the operating system where the agent is currently running.-
Methods inherited from class jetbrains.buildServer.serverSide.agentTypes.AgentDescriptionBase
getAvailableParameters, getAvailableParameterValue, getBuildParameters, getConfigurationParameters, getDefinedParameters, isCaseInsensitiveEnvironment, isCaseInsensitiveEnvironment, isEphemeral, updateParameters
-
-
-
-
Constructor Detail
-
MutableAgentDescriptionProxy
protected MutableAgentDescriptionProxy(@NotNull AgentDescription proxy)
-
-
Method Detail
-
getAvailableRunTypes
@NotNull public List<RunType> getAvailableRunTypes()
Description copied from interface:AgentDescription
Returns list of runners available on the agent- 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- Returns:
- set of runner types
-
getOperatingSystemName
@NotNull public String getOperatingSystemName()
Description copied from interface:AgentDescription
Returns name of the operating system where the agent is currently running.- 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.- 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 interfaceAgentDescription
- Overrides:
getCpuCount
in classAgentDescriptionBase
- Returns:
- number of CPUs or -1 if count is not available
-
-