Class AgentWithCapabilitiesDefinitionImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
-
- com.atlassian.bamboo.v2.build.agent.AgentWithCapabilitiesDefinitionImpl
-
- All Implemented Interfaces:
AgentWithCapabilitiesDefinition
,PipelineDefinition
,BambooIdProvider
,BambooObject
,CreationDateProvider
,Cloneable
,Comparable<PipelineDefinition>
public abstract class AgentWithCapabilitiesDefinitionImpl extends PipelineDefinitionImpl implements AgentWithCapabilitiesDefinition
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
name
-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AgentWithCapabilitiesDefinitionImpl()
protected
AgentWithCapabilitiesDefinitionImpl(long id, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @NotNull CapabilitySet
getAgentCapabilitySet()
@Nullable CapabilitySet
getCapabilitySet()
Will only return what is stored in the database against this agent.protected abstract CapabilitySet
newCapabilitySet()
void
setCapabilitySet(CapabilitySet capabilitySet)
-
Methods inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
compareTo, equals, getDescription, getEphemeralAgentDedication, getEphemeralAgentDedicationUntyped, getName, getType, hashCode, isDedicated, isEnabled, setDescription, setEnabled, setEphemeralAgentDedication, setEphemeralAgentDedicationUntyped, setName
-
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, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition
accept, getCreationDate, getDescription, getEphemeralAgentDedication, getEphemeralAgentDedicationUntyped, getLastModificationDate, getName, getType, isDedicated, isEnabled, setCreationDate, setDescription, setEnabled, setEphemeralAgentDedication, setEphemeralAgentDedicationUntyped, setLastModificationDate, setName
-
-
-
-
Constructor Detail
-
AgentWithCapabilitiesDefinitionImpl
protected AgentWithCapabilitiesDefinitionImpl()
-
AgentWithCapabilitiesDefinitionImpl
protected AgentWithCapabilitiesDefinitionImpl(long id, String name)
-
-
Method Detail
-
getCapabilitySet
@Nullable public @Nullable CapabilitySet getCapabilitySet()
Will only return what is stored in the database against this agent. This is not necessarily the complete capability set for the Pipeline. Use {#getAgentCapabilitySet} instead- Specified by:
getCapabilitySet
in interfaceAgentWithCapabilitiesDefinition
- Returns:
- capability set stored against this agent.
-
getAgentCapabilitySet
@NotNull public @NotNull CapabilitySet getAgentCapabilitySet()
- Specified by:
getAgentCapabilitySet
in interfaceAgentWithCapabilitiesDefinition
-
newCapabilitySet
protected abstract CapabilitySet newCapabilitySet()
-
setCapabilitySet
public void setCapabilitySet(CapabilitySet capabilitySet)
- Specified by:
setCapabilitySet
in interfaceAgentWithCapabilitiesDefinition
-
-