Package com.atlassian.bamboo.buildqueue
Class AgentAssignmentRequirement
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.v2.build.agent.capability.RequirementImpl
-
- com.atlassian.bamboo.buildqueue.AgentAssignmentRequirement
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,Requirement
,ImmutableRequirement
,Cloneable
public class AgentAssignmentRequirement extends RequirementImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.requirement.ImmutableRequirement
ImmutableRequirement.MatchType
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.Requirement
EQUALS, EXISTS, REGEX
-
-
Constructor Summary
Constructors Constructor Description AgentAssignmentRequirement(AgentAssignmentService.AgentAssignmentExecutor allowedExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentAssignmentService.AgentAssignmentExecutor
getAllowedExecutor()
String
getMatchType()
String representation of the type of match the requirement needs.String
getMatchValue()
A match requirement value.-
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.RequirementImpl
belongsToPlugin, compareTo, equals, getKey, getOwnerId, getPluginModuleKey, getRequirementSet, getTypeOfMatch, hashCode, isReadonly, isRegexMatch, isSystemRequirement, setKey, setMatchValue, setOwnerId, setPluginModuleKey, setReadonly, setRegexMatch, setRequirementSet, toString
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
AgentAssignmentRequirement
public AgentAssignmentRequirement(AgentAssignmentService.AgentAssignmentExecutor allowedExecutor)
-
-
Method Detail
-
getMatchValue
public String getMatchValue()
Description copied from interface:ImmutableRequirement
A match requirement value. Even "EXISTS" matches are represented as a regex match with match value ".*"The regex must match the
Capability
value.- Specified by:
getMatchValue
in interfaceImmutableRequirement
- Overrides:
getMatchValue
in classRequirementImpl
- Returns:
- the value to match.
-
getMatchType
public String getMatchType()
Description copied from interface:Requirement
String representation of the type of match the requirement needs. This us representitive of what the users see in the UI.- Specified by:
getMatchType
in interfaceRequirement
- Overrides:
getMatchType
in classRequirementImpl
- Returns:
-
getAllowedExecutor
public AgentAssignmentService.AgentAssignmentExecutor getAllowedExecutor()
-
-