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 booleanaccept(BuildAgent agent)Determines whether the given data satisfies implementation specific criteria.intgetId()Returns the corresponded identifier for this agent restrictor.AgentRestrictorTypegetType()Returns thetypeof agent restrictor.
-
-
-
Method Detail
-
accept
public boolean accept(@NotNull BuildAgent agent)Description copied from interface:FilterDetermines whether the given data satisfies implementation specific criteria.- Specified by:
acceptin 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:AgentRestrictorReturns thetypeof agent restrictor.- Specified by:
getTypein interfaceAgentRestrictor- Returns:
- see above
-
getId
public int getId()
Description copied from interface:AgentRestrictorReturns the corresponded identifier for this agent restrictor. Returns agent id forAgentRestrictorType.SINGLE_AGENT, pool id forAgentRestrictorType.AGENT_POOL.- Specified by:
getIdin interfaceAgentRestrictor- Returns:
- see above
-
-