Class PipelineDefinitionImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
-
- All Implemented Interfaces:
PipelineDefinition,BambooIdProvider,BambooObject,CreationDateProvider,Cloneable,Comparable<PipelineDefinition>
- Direct Known Subclasses:
AgentWithCapabilitiesDefinitionImpl,ElasticAgentDefinitionImpl,EphemeralAgentDefinitionImpl,LocalAgentDefinitionImpl,RemoteAgentDefinitionImpl
@Entity public abstract class PipelineDefinitionImpl extends BambooEntityObject implements PipelineDefinition
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringname-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
-
Constructor Summary
Constructors Constructor Description PipelineDefinitionImpl()PipelineDefinitionImpl(long id, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(PipelineDefinition obj)booleanequals(Object o)StringgetDescription()@Nullable ResultKeygetEphemeralAgentDedication()Key of the job this agent is dedicated to or null if not a dedicated ephemeral agent.@Nullable StringgetEphemeralAgentDedicationUntyped()For persistence only.StringgetName()abstract @NotNull AgentTypegetType()Gets type of the agentinthashCode()booleanisDedicated()Is the agent dedicated to a specific job.booleanisEnabled()voidsetDescription(String description)voidsetEnabled(boolean enabled)voidsetEphemeralAgentDedication(@Nullable ResultKey ephemeralAgentDedication)Mark this agent as dedicated to a specific job.voidsetEphemeralAgentDedicationUntyped(String ephemeralAgentDedication)For persistence only.voidsetName(String name)-
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 com.atlassian.bamboo.buildqueue.PipelineDefinition
accept, getCreationDate, getLastModificationDate, setCreationDate, setLastModificationDate
-
-
-
-
Field Detail
-
name
protected String name
-
-
Constructor Detail
-
PipelineDefinitionImpl
public PipelineDefinitionImpl()
-
PipelineDefinitionImpl
public PipelineDefinitionImpl(long id, String name)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacePipelineDefinition
-
setName
public void setName(String name)
- Specified by:
setNamein interfacePipelineDefinition
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacePipelineDefinition
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfacePipelineDefinition
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacePipelineDefinition
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfacePipelineDefinition
-
getEphemeralAgentDedicationUntyped
@Nullable public @Nullable String getEphemeralAgentDedicationUntyped()
Description copied from interface:PipelineDefinitionFor persistence only. UsePipelineDefinition.getEphemeralAgentDedication()instead.- Specified by:
getEphemeralAgentDedicationUntypedin interfacePipelineDefinition
-
setEphemeralAgentDedicationUntyped
public void setEphemeralAgentDedicationUntyped(String ephemeralAgentDedication)
Description copied from interface:PipelineDefinitionFor persistence only. UsePipelineDefinition.setEphemeralAgentDedication(ResultKey)instead.- Specified by:
setEphemeralAgentDedicationUntypedin interfacePipelineDefinition
-
getEphemeralAgentDedication
@Nullable public @Nullable ResultKey getEphemeralAgentDedication()
Description copied from interface:PipelineDefinitionKey of the job this agent is dedicated to or null if not a dedicated ephemeral agent.- Specified by:
getEphemeralAgentDedicationin interfacePipelineDefinition
-
setEphemeralAgentDedication
public void setEphemeralAgentDedication(@Nullable @Nullable ResultKey ephemeralAgentDedication)Description copied from interface:PipelineDefinitionMark this agent as dedicated to a specific job.- Specified by:
setEphemeralAgentDedicationin interfacePipelineDefinition
-
isDedicated
public boolean isDedicated()
Description copied from interface:PipelineDefinitionIs the agent dedicated to a specific job.- Specified by:
isDedicatedin interfacePipelineDefinition- Returns:
- whether is dedicated
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(PipelineDefinition obj)
- Specified by:
compareToin interfaceComparable<PipelineDefinition>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
getType
@NotNull public abstract @NotNull AgentType getType()
Description copied from interface:PipelineDefinitionGets type of the agent- Specified by:
getTypein interfacePipelineDefinition- Returns:
- Type of the agent
-
-