Package jetbrains.buildServer
Interface BuildAgent
-
- All Known Subinterfaces:
SBuildAgent
public interface BuildAgent
Representation of registered agent
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_POOL_ID
Deprecated.useAgentPool.DEFAULT_POOL_ID
insteadstatic java.lang.String
DEFAULT_POOL_NAME
Deprecated.useAgentPool.DEFAULT_POOL_NAME
instead
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAgentPoolId()
Returns the pool id the agent belongs to.int
getCpuBenchmarkIndex()
Returns this agent CPU benchmark index.int
getCpuCount()
Returns the number of CPUs of this agentint
getId()
Returns this agent unique idjava.lang.String
getName()
Returns name of the agentboolean
isEnabled()
Returns true if agent is enabled and false otherwiseboolean
isUpgrading()
Returns true if agent is upgrading
-
-
-
Field Detail
-
DEFAULT_POOL_ID
@Deprecated static final int DEFAULT_POOL_ID
Deprecated.useAgentPool.DEFAULT_POOL_ID
instead- See Also:
- Constant Field Values
-
DEFAULT_POOL_NAME
@Deprecated static final java.lang.String DEFAULT_POOL_NAME
Deprecated.useAgentPool.DEFAULT_POOL_NAME
instead- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
int getId()
Returns this agent unique id- Returns:
- agent unique id
-
getName
java.lang.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
-
-