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
FieldsFields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintboolean@Nullable ResultKeyKey of the job this agent is dedicated to or null if not a dedicated ephemeral agent.@Nullable StringFor persistence only.getName()abstract @NotNull AgentTypegetType()Gets type of the agentinthashCode()booleanIs the agent dedicated to a specific job.booleanvoidsetDescription(String description) voidsetEnabled(boolean enabled) voidsetEphemeralAgentDedication(@Nullable ResultKey ephemeralAgentDedication) Mark this agent as dedicated to a specific job.voidsetEphemeralAgentDedicationUntyped(String ephemeralAgentDedication) For persistence only.voidMethods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods 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:
getNamein interfacePipelineDefinition
-
setName
- Specified by:
setNamein interfacePipelineDefinition
-
getDescription
- Specified by:
getDescriptionin interfacePipelineDefinition
-
setDescription
- Specified by:
setDescriptionin interfacePipelineDefinition
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfacePipelineDefinition
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacePipelineDefinition
-
getEphemeralAgentDedicationUntyped
Description copied from interface:PipelineDefinitionFor persistence only. UsePipelineDefinition.getEphemeralAgentDedication()instead.- Specified by:
getEphemeralAgentDedicationUntypedin interfacePipelineDefinition
-
setEphemeralAgentDedicationUntyped
Description copied from interface:PipelineDefinitionFor persistence only. UsePipelineDefinition.setEphemeralAgentDedication(ResultKey)instead.- Specified by:
setEphemeralAgentDedicationUntypedin interfacePipelineDefinition
-
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
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
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
- Specified by:
compareToin interfaceComparable<PipelineDefinition>
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
getType
Description copied from interface:PipelineDefinitionGets type of the agent- Specified by:
getTypein interfacePipelineDefinition- Returns:
- Type of the agent
-