Class AgentTypeData
- java.lang.Object
-
- jetbrains.buildServer.serverSide.agentTypes.AgentDescriptionBase
-
- jetbrains.buildServer.serverSide.agentTypes.AgentTypeData
-
- All Implemented Interfaces:
AgentDescription
,AgentType
,MutableAgentDescription
- Direct Known Subclasses:
UnresolvedCloudAgentTypeData
public class AgentTypeData extends AgentDescriptionBase implements AgentType
- Author:
- Eugene Petrenko Created: 15.02.2010 18:22:49
-
-
Constructor Summary
Constructors Modifier Constructor Description AgentTypeData(int agentTypeId, int agentPoolId, boolean projectAgentPool, AgentTypeKey agentTypeKey, String osName, int cpuRank, Map<String,String> buildParams, Map<String,String> configParams, Set<String> runnerTypes, List<String> vcsPlugins, AgentTypePolicy agentTypePolicy, RunTypeRegistry runTypeRegistry)
protected
AgentTypeData(AgentTypeData src, Supplier<AgentTypePolicy> policySupplier, RunTypeRegistry runTypeRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentTypeData
createUpdatedData(String osName, int cpuRank, Map<String,String> buildParams, Map<String,String> configParams, Set<String> runnerTypes, List<String> vcsPlugins)
int
getAgentPoolId()
int
getAgentTypeId()
AgentTypeKey
getAgentTypeKey()
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.String
getOperatingSystemName()
Returns name of the operating system where the agent is currently running.AgentTypePolicy
getPolicy()
boolean
isBelongsToProjectPool()
-
Methods inherited from class jetbrains.buildServer.serverSide.agentTypes.AgentDescriptionBase
getAvailableParameters, getAvailableParameterValue, getBuildParameters, getConfigurationParameters, getCpuCount, getDefinedParameters, isCaseInsensitiveEnvironment, isCaseInsensitiveEnvironment, isEphemeral, updateParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.AgentDescription
getAvailableParameters, getAvailableParameterValue, getBuildParameters, getConfigurationParameters, getCpuCount, getDefinedParameters, isCaseInsensitiveEnvironment
-
-
-
-
Constructor Detail
-
AgentTypeData
protected AgentTypeData(@NotNull AgentTypeData src, @NotNull Supplier<AgentTypePolicy> policySupplier, @NotNull RunTypeRegistry runTypeRegistry)
-
AgentTypeData
public AgentTypeData(int agentTypeId, int agentPoolId, boolean projectAgentPool, @NotNull AgentTypeKey agentTypeKey, @NotNull String osName, int cpuRank, @NotNull Map<String,String> buildParams, @NotNull Map<String,String> configParams, @NotNull Set<String> runnerTypes, @NotNull List<String> vcsPlugins, @NotNull AgentTypePolicy agentTypePolicy, @NotNull RunTypeRegistry runTypeRegistry)
-
-
Method Detail
-
getAgentTypeId
public int getAgentTypeId()
- Specified by:
getAgentTypeId
in interfaceAgentType
-
getAgentPoolId
public int getAgentPoolId()
- Specified by:
getAgentPoolId
in interfaceAgentType
-
isBelongsToProjectPool
public boolean isBelongsToProjectPool()
-
getAgentTypeKey
@NotNull public AgentTypeKey getAgentTypeKey()
- Specified by:
getAgentTypeKey
in interfaceAgentType
-
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
-
getPolicy
@NotNull public AgentTypePolicy getPolicy()
-
-