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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(PipelineDefinitionVisitor visitor)
Call back method to perform different actions depending on what type of agent it isDate
getCreationDate()
@Nullable 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.Date
getLastModificationDate()
String
getName()
@NotNull AgentType
getType()
Gets type of the agentboolean
isDedicated()
Is the agent dedicated to a specific job.boolean
isEnabled()
void
setCreationDate(Date date)
void
setDescription(@Nullable String description)
void
setEnabled(boolean enabled)
void
setEphemeralAgentDedication(@Nullable ResultKey key)
Mark this agent as dedicated to a specific job.void
setEphemeralAgentDedicationUntyped(@Nullable String key)
For persistence only.void
setLastModificationDate(Date date)
void
setName(String name)
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getName
String getName()
-
setName
void setName(String name)
-
getDescription
@Nullable @Nullable String getDescription()
-
getCreationDate
Date getCreationDate()
- Specified by:
getCreationDate
in interfaceCreationDateProvider
- Returns:
- Date the version object was created.
-
setCreationDate
void setCreationDate(Date date)
-
getLastModificationDate
Date getLastModificationDate()
-
setLastModificationDate
void setLastModificationDate(Date date)
-
accept
void accept(PipelineDefinitionVisitor visitor)
Call back method to perform different actions depending on what type of agent it is- Parameters:
visitor
- Visitor object
-
setDescription
void setDescription(@Nullable @Nullable String description)
-
isEnabled
boolean isEnabled()
-
setEnabled
void setEnabled(boolean enabled)
-
getType
@NotNull @NotNull AgentType getType()
Gets type of the agent- Returns:
- Type of the agent
-
getEphemeralAgentDedicationUntyped
@Internal @Nullable @Nullable String getEphemeralAgentDedicationUntyped()
For persistence only. UsegetEphemeralAgentDedication()
instead.- Since:
- 9.1
-
setEphemeralAgentDedicationUntyped
@Internal void setEphemeralAgentDedicationUntyped(@Nullable @Nullable String key)
For persistence only. UsesetEphemeralAgentDedication(ResultKey)
instead.- Since:
- 9.1
-
getEphemeralAgentDedication
@Nullable @Nullable ResultKey getEphemeralAgentDedication()
Key of the job this agent is dedicated to or null if not a dedicated ephemeral agent.- Since:
- 9.1
-
setEphemeralAgentDedication
void setEphemeralAgentDedication(@Nullable @Nullable ResultKey key)
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
-
-