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 boolean
accept(BuildAgent data)
Determines whether the given data satisfies implementation specific criteria.boolean
accept(AgentType data)
AgentType
getAgentType()
int
getId()
Returns the corresponded identifier for this agent restrictor.String
getJspPagePath()
Returns path to the JSP page to render this restriction on build queue page in "Agent" columnAgentRestrictorType
getType()
Returns thetype
of agent restrictor.boolean
isRelatedToPool(int agentPoolId)
-
-
-
Constructor Detail
-
CloudAgentRestrictor
public CloudAgentRestrictor(int id, AgentTypeFinder agentTypeFinder)
-
-
Method Detail
-
getJspPagePath
@NotNull public String getJspPagePath()
Description copied from interface:SAgentRestrictor
Returns path to the JSP page to render this restriction on build queue page in "Agent" column- Specified by:
getJspPagePath
in interfaceSAgentRestrictor
- Returns:
- see above
-
isRelatedToPool
public boolean isRelatedToPool(int agentPoolId)
- Specified by:
isRelatedToPool
in interfaceSAgentRestrictor
-
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
-
accept
public boolean accept(@NotNull BuildAgent data)
Description copied from interface:Filter
Determines whether the given data satisfies implementation specific criteria.- Specified by:
accept
in 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:
accept
in interfaceAgentTypeRestrictor
-
-