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 String
name
-
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 int
compareTo(PipelineDefinition obj)
boolean
equals(Object o)
String
getDescription()
@Nullable ResultKey
getEphemeralAgentDedication()
Key of the job this agent is dedicated to or null if not a dedicated ephemeral agent.@Nullable String
getEphemeralAgentDedicationUntyped()
For persistence only.String
getName()
abstract @NotNull AgentType
getType()
Gets type of the agentint
hashCode()
boolean
isDedicated()
Is the agent dedicated to a specific job.boolean
isEnabled()
void
setDescription(String description)
void
setEnabled(boolean enabled)
void
setEphemeralAgentDedication(@Nullable ResultKey ephemeralAgentDedication)
Mark this agent as dedicated to a specific job.void
setEphemeralAgentDedicationUntyped(String ephemeralAgentDedication)
For persistence only.void
setName(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:
getName
in interfacePipelineDefinition
-
setName
public void setName(String name)
- Specified by:
setName
in interfacePipelineDefinition
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfacePipelineDefinition
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfacePipelineDefinition
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfacePipelineDefinition
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfacePipelineDefinition
-
getEphemeralAgentDedicationUntyped
@Nullable public @Nullable String getEphemeralAgentDedicationUntyped()
Description copied from interface:PipelineDefinition
For persistence only. UsePipelineDefinition.getEphemeralAgentDedication()
instead.- Specified by:
getEphemeralAgentDedicationUntyped
in interfacePipelineDefinition
-
setEphemeralAgentDedicationUntyped
public void setEphemeralAgentDedicationUntyped(String ephemeralAgentDedication)
Description copied from interface:PipelineDefinition
For persistence only. UsePipelineDefinition.setEphemeralAgentDedication(ResultKey)
instead.- Specified by:
setEphemeralAgentDedicationUntyped
in interfacePipelineDefinition
-
getEphemeralAgentDedication
@Nullable public @Nullable ResultKey getEphemeralAgentDedication()
Description copied from interface:PipelineDefinition
Key of the job this agent is dedicated to or null if not a dedicated ephemeral agent.- Specified by:
getEphemeralAgentDedication
in interfacePipelineDefinition
-
setEphemeralAgentDedication
public void setEphemeralAgentDedication(@Nullable @Nullable ResultKey ephemeralAgentDedication)
Description copied from interface:PipelineDefinition
Mark this agent as dedicated to a specific job.- Specified by:
setEphemeralAgentDedication
in interfacePipelineDefinition
-
isDedicated
public boolean isDedicated()
Description copied from interface:PipelineDefinition
Is the agent dedicated to a specific job.- Specified by:
isDedicated
in interfacePipelineDefinition
- Returns:
- whether is dedicated
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(PipelineDefinition obj)
- Specified by:
compareTo
in interfaceComparable<PipelineDefinition>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
getType
@NotNull public abstract @NotNull AgentType getType()
Description copied from interface:PipelineDefinition
Gets type of the agent- Specified by:
getType
in interfacePipelineDefinition
- Returns:
- Type of the agent
-
-