Package com.atlassian.bamboo.buildqueue
Interface PipelineDefinition
- All Superinterfaces:
BambooIdProvider,BambooObject,Cloneable,Comparable<PipelineDefinition>,CreationDateProvider
- All Known Subinterfaces:
AgentWithCapabilitiesDefinition,ElasticAgentDefinition,EphemeralAgentDefinition,LocalAgentDefinition,RemoteAgentDefinition
- All Known Implementing Classes:
AgentWithCapabilitiesDefinitionImpl,ElasticAgentDefinitionImpl,EphemeralAgentDefinitionImpl,LocalAgentDefinitionImpl,PipelineDefinitionImpl,RemoteAgentDefinitionImpl
public interface PipelineDefinition
extends BambooObject, BambooIdProvider, CreationDateProvider, Comparable<PipelineDefinition>, Cloneable
Definition of an entity (agent) capable of executing plans
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(PipelineDefinitionVisitor visitor) Call back method to perform different actions depending on what type of agent it is@Nullable String@Nullable ResultKeyKey of the job this agent is dedicated to or null if not a dedicated ephemeral agent.@Nullable StringFor persistence only.getName()@NotNull AgentTypegetType()Gets type of the agentbooleanIs the agent dedicated to a specific job.booleanvoidsetCreationDate(Date date) voidsetDescription(@Nullable String description) voidsetEnabled(boolean enabled) voidsetEphemeralAgentDedication(@Nullable ResultKey key) Mark this agent as dedicated to a specific job.voidsetEphemeralAgentDedicationUntyped(@Nullable String key) For persistence only.voidsetLastModificationDate(Date date) voidMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
String getName() -
setName
-
getDescription
-
getCreationDate
Date getCreationDate()- Specified by:
getCreationDatein interfaceCreationDateProvider- Returns:
- Date the version object was created.
-
setCreationDate
-
getLastModificationDate
Date getLastModificationDate() -
setLastModificationDate
-
accept
Call back method to perform different actions depending on what type of agent it is- Parameters:
visitor- Visitor object
-
setDescription
-
isEnabled
boolean isEnabled() -
setEnabled
void setEnabled(boolean enabled) -
getType
Gets type of the agent- Returns:
- Type of the agent
-
getEphemeralAgentDedicationUntyped
For persistence only. UsegetEphemeralAgentDedication()instead.- Since:
- 9.1
-
setEphemeralAgentDedicationUntyped
For persistence only. UsesetEphemeralAgentDedication(ResultKey)instead.- Since:
- 9.1
-
getEphemeralAgentDedication
Key of the job this agent is dedicated to or null if not a dedicated ephemeral agent.- Since:
- 9.1
-
setEphemeralAgentDedication
Mark this agent as dedicated to a specific job.- Since:
- 9.1
-
isDedicated
boolean isDedicated()Is the agent dedicated to a specific job.- Returns:
- whether is dedicated
- Since:
- 9.1
-