Package jetbrains.buildServer
Interface AgentRestrictor
-
- All Superinterfaces:
Filter<BuildAgent>
- All Known Subinterfaces:
SAgentRestrictor
- All Known Implementing Classes:
CloudAgentRestrictor
,PoolRestrictor
,PoolRestrictorInfo
,SingleAgentRestrictor
,SingleAgentRestrictorInfo
public interface AgentRestrictor extends Filter<BuildAgent>
Restricts the set of possible agents to start queued build on.- Since:
- 7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getId()
Returns the corresponded identifier for this agent restrictor.AgentRestrictorType
getType()
Returns thetype
of agent restrictor.
-
-
-
Method Detail
-
getType
@NotNull AgentRestrictorType getType()
Returns thetype
of agent restrictor.- Returns:
- see above
-
getId
int getId()
Returns the corresponded identifier for this agent restrictor. Returns agent id forAgentRestrictorType.SINGLE_AGENT
, pool id forAgentRestrictorType.AGENT_POOL
.- Returns:
- see above
-
-