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)protectedAgentTypeData(AgentTypeData src, Supplier<AgentTypePolicy> policySupplier, RunTypeRegistry runTypeRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentTypeDatacreateUpdatedData(String osName, int cpuRank, Map<String,String> buildParams, Map<String,String> configParams, Set<String> runnerTypes, List<String> vcsPlugins)intgetAgentPoolId()intgetAgentTypeId()AgentTypeKeygetAgentTypeKey()Set<String>getAvailableRunTypeIds()Returns set of runner types available on the agentList<RunType>getAvailableRunTypes()Returns list of runners available on the agentList<String>getAvailableVcsPlugins()intgetCpuBenchmarkIndex()Returns this agent CPU benchmark index.StringgetOperatingSystemName()Returns name of the operating system where the agent is currently running.AgentTypePolicygetPolicy()booleanisBelongsToProjectPool()-
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:
getAgentTypeIdin interfaceAgentType
-
getAgentPoolId
public int getAgentPoolId()
- Specified by:
getAgentPoolIdin interfaceAgentType
-
isBelongsToProjectPool
public boolean isBelongsToProjectPool()
-
getAgentTypeKey
@NotNull public AgentTypeKey getAgentTypeKey()
- Specified by:
getAgentTypeKeyin interfaceAgentType
-
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
-
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
-
getPolicy
@NotNull public AgentTypePolicy getPolicy()
-
-