Class PoolRestrictorInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.buildDistribution.restrictors.PoolRestrictorInfo
-
- All Implemented Interfaces:
AgentRestrictor
,Filter<BuildAgent>
- Direct Known Subclasses:
PoolRestrictor
public class PoolRestrictorInfo extends Object implements AgentRestrictor
- Author:
- Maxim.Manuylov Date: 11/1/11
-
-
Constructor Summary
Constructors Constructor Description PoolRestrictorInfo(int poolId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(BuildAgent agent)
Determines whether the given data satisfies implementation specific criteria.int
getId()
Returns the corresponded identifier for this agent restrictor.AgentRestrictorType
getType()
Returns thetype
of agent restrictor.
-
-
-
Method Detail
-
accept
public boolean accept(@NotNull BuildAgent agent)
Description copied from interface:Filter
Determines whether the given data satisfies implementation specific criteria.- Specified by:
accept
in interfaceFilter<BuildAgent>
- Parameters:
agent
- the data being assessed- Returns:
- true if data satisfies the criteria. False otherwise.
-
getType
@NotNull public AgentRestrictorType getType()
Description copied from interface:AgentRestrictor
Returns thetype
of agent restrictor.- Specified by:
getType
in interfaceAgentRestrictor
- Returns:
- see above
-
getId
public int getId()
Description copied from interface:AgentRestrictor
Returns the corresponded identifier for this agent restrictor. Returns agent id forAgentRestrictorType.SINGLE_AGENT
, pool id forAgentRestrictorType.AGENT_POOL
.- Specified by:
getId
in interfaceAgentRestrictor
- Returns:
- see above
-
-