Package jetbrains.buildServer
Interface BuildAgent
-
- All Known Subinterfaces:
BuildAgentEx,SBuildAgent
- All Known Implementing Classes:
AbstractBuildAgent,AbstractBuildAgentContext,DeadAgent,MockBuildAgent,RegisteredAgent,SecuredBuildAgent,UnregisteredAgent
public interface BuildAgentRepresentation of registered agent
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_POOL_IDDeprecated.useAgentPool.DEFAULT_POOL_IDinsteadstatic StringDEFAULT_POOL_NAMEDeprecated.useAgentPool.DEFAULT_POOL_NAMEinstead
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAgentPoolId()Returns the pool id the agent belongs to.intgetCpuBenchmarkIndex()Returns this agent CPU benchmark index.intgetCpuCount()Returns the number of CPUs of this agentintgetId()Returns this agent unique idStringgetName()Returns name of the agentbooleanisEnabled()Returns true if agent is enabled and false otherwisebooleanisUpgrading()Returns true if agent is upgrading
-
-
-
Field Detail
-
DEFAULT_POOL_ID
@Deprecated static final int DEFAULT_POOL_ID
Deprecated.useAgentPool.DEFAULT_POOL_IDinstead- See Also:
- Constant Field Values
-
DEFAULT_POOL_NAME
@Deprecated static final String DEFAULT_POOL_NAME
Deprecated.useAgentPool.DEFAULT_POOL_NAMEinstead- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
int getId()
Returns this agent unique id- Returns:
- agent unique id
-
getName
String getName()
Returns name of the agent- Returns:
- name of the agent
-
isUpgrading
boolean isUpgrading()
Returns true if agent is upgrading- Returns:
- true if agent is upgrading
-
isEnabled
boolean isEnabled()
Returns true if agent is enabled and false otherwise- Returns:
- true if agent is enabled and false otherwise
-
getCpuBenchmarkIndex
int getCpuBenchmarkIndex()
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
int getCpuCount()
Returns the number of CPUs of this agent- Returns:
- number of CPUs or -1 if count is not available
- Since:
- 2023.03
-
getAgentPoolId
int getAgentPoolId()
Returns the pool id the agent belongs to.
- Returns:
- agent pool id the agent belongs to
- Since:
- 10.0
-
-