Class CloudAgentRestrictor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.buildDistribution.restrictors.CloudAgentRestrictor
-
- All Implemented Interfaces:
AgentRestrictor,AgentTypeRestrictor,SAgentRestrictor,Filter<BuildAgent>
public class CloudAgentRestrictor extends Object implements SAgentRestrictor, AgentTypeRestrictor
-
-
Constructor Summary
Constructors Constructor Description CloudAgentRestrictor(int id, AgentTypeFinder agentTypeFinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(BuildAgent data)Determines whether the given data satisfies implementation specific criteria.booleanaccept(AgentType data)AgentTypegetAgentType()intgetId()Returns the corresponded identifier for this agent restrictor.StringgetJspPagePath()Returns path to the JSP page to render this restriction on build queue page in "Agent" columnAgentRestrictorTypegetType()Returns thetypeof agent restrictor.booleanisRelatedToPool(int agentPoolId)
-
-
-
Constructor Detail
-
CloudAgentRestrictor
public CloudAgentRestrictor(int id, AgentTypeFinder agentTypeFinder)
-
-
Method Detail
-
getJspPagePath
@NotNull public String getJspPagePath()
Description copied from interface:SAgentRestrictorReturns path to the JSP page to render this restriction on build queue page in "Agent" column- Specified by:
getJspPagePathin interfaceSAgentRestrictor- Returns:
- see above
-
isRelatedToPool
public boolean isRelatedToPool(int agentPoolId)
- Specified by:
isRelatedToPoolin interfaceSAgentRestrictor
-
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
-
accept
public boolean accept(@NotNull BuildAgent data)Description copied from interface:FilterDetermines whether the given data satisfies implementation specific criteria.- Specified by:
acceptin interfaceFilter<BuildAgent>- Parameters:
data- the data being assessed- Returns:
- true if data satisfies the criteria. False otherwise.
-
getAgentType
@Nullable public AgentType getAgentType()
-
accept
public boolean accept(@NotNull AgentType data)- Specified by:
acceptin interfaceAgentTypeRestrictor
-
-