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 inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
@Nullable ResultKey
Key of the job this agent is dedicated to or null if not a dedicated ephemeral agent.@Nullable String
For persistence only.getName()
abstract @NotNull AgentType
getType()
Gets type of the agentint
hashCode()
boolean
Is the agent dedicated to a specific job.boolean
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
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 Details
-
name
-
-
Constructor Details
-
PipelineDefinitionImpl
public PipelineDefinitionImpl() -
PipelineDefinitionImpl
-
-
Method Details
-
getName
- Specified by:
getName
in interfacePipelineDefinition
-
setName
- Specified by:
setName
in interfacePipelineDefinition
-
getDescription
- Specified by:
getDescription
in interfacePipelineDefinition
-
setDescription
- 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
Description copied from interface:PipelineDefinition
For persistence only. UsePipelineDefinition.getEphemeralAgentDedication()
instead.- Specified by:
getEphemeralAgentDedicationUntyped
in interfacePipelineDefinition
-
setEphemeralAgentDedicationUntyped
Description copied from interface:PipelineDefinition
For persistence only. UsePipelineDefinition.setEphemeralAgentDedication(ResultKey)
instead.- Specified by:
setEphemeralAgentDedicationUntyped
in interfacePipelineDefinition
-
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
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
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PipelineDefinition>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
getType
Description copied from interface:PipelineDefinition
Gets type of the agent- Specified by:
getType
in interfacePipelineDefinition
- Returns:
- Type of the agent
-