Class ElasticAgentDefinitionImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
-
- com.atlassian.bamboo.v2.build.agent.ElasticAgentDefinitionImpl
-
- All Implemented Interfaces:
ElasticAgentDefinition
,PipelineDefinition
,DistributedProperties
,BambooIdProvider
,BambooObject
,CreationDateProvider
,Serializable
,Cloneable
,Comparable<PipelineDefinition>
@Entity public class ElasticAgentDefinitionImpl extends PipelineDefinitionImpl implements ElasticAgentDefinition
Defines an Elastic Agent- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
name
-
Fields inherited from interface com.atlassian.bamboo.utils.CreationDateProvider
ORDERING
-
-
Constructor Summary
Constructors Constructor Description ElasticAgentDefinitionImpl()
ElasticAgentDefinitionImpl(long id, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PipelineDefinitionVisitor visitor)
Call back method to perform different actions depending on what type of agent it islong
getAgentUpTime()
ElasticImageConfiguration
getElasticImageConfiguration()
long
getElasticImageConfigurationId()
String
getElasticImageId()
Utility method for accessing AmiId of imageString
getElasticInstanceId()
String
getImageFilesVersion()
Date
getLastShutdownTime()
Date
getLastStartupTime()
@NotNull AgentType
getType()
Gets type of the agentvoid
setElasticImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration)
void
setElasticImageConfigurationId(long elasticImageConfigurationId)
void
setElasticInstanceId(String elasticInstanceId)
void
setImageFilesVersion(String imageFilesVersion)
void
setLastShutdownTime(@Nullable Date lastShutdownTime)
void
setLastStartupTime(@Nullable Date lastStartupTime)
-
Methods inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
compareTo, equals, getDescription, getEphemeralAgentDedication, getEphemeralAgentDedicationUntyped, getName, hashCode, isDedicated, isEnabled, setDescription, setEnabled, setEphemeralAgentDedication, setEphemeralAgentDedicationUntyped, setName
-
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 java.lang.Comparable
compareTo
-
Methods inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition
getCreationDate, getDescription, getEphemeralAgentDedication, getEphemeralAgentDedicationUntyped, getLastModificationDate, getName, isDedicated, isEnabled, setCreationDate, setDescription, setEnabled, setEphemeralAgentDedication, setEphemeralAgentDedicationUntyped, setLastModificationDate, setName
-
-
-
-
Constructor Detail
-
ElasticAgentDefinitionImpl
public ElasticAgentDefinitionImpl()
-
ElasticAgentDefinitionImpl
public ElasticAgentDefinitionImpl(long id, String name)
-
-
Method Detail
-
getLastShutdownTime
public Date getLastShutdownTime()
- Specified by:
getLastShutdownTime
in interfaceDistributedProperties
-
getLastStartupTime
public Date getLastStartupTime()
- Specified by:
getLastStartupTime
in interfaceDistributedProperties
-
setLastShutdownTime
public void setLastShutdownTime(@Nullable @Nullable Date lastShutdownTime)
- Specified by:
setLastShutdownTime
in interfaceDistributedProperties
-
setLastStartupTime
public void setLastStartupTime(@Nullable @Nullable Date lastStartupTime)
- Specified by:
setLastStartupTime
in interfaceDistributedProperties
-
getAgentUpTime
public long getAgentUpTime()
- Specified by:
getAgentUpTime
in interfaceDistributedProperties
-
getElasticImageId
public String getElasticImageId()
Utility method for accessing AmiId of image- Specified by:
getElasticImageId
in interfaceElasticAgentDefinition
- Returns:
-
getElasticImageConfigurationId
public long getElasticImageConfigurationId()
- Specified by:
getElasticImageConfigurationId
in interfaceElasticAgentDefinition
- Returns:
- Id of ElasticImageConfiguration
-
setElasticImageConfigurationId
public void setElasticImageConfigurationId(long elasticImageConfigurationId)
-
getElasticImageConfiguration
public ElasticImageConfiguration getElasticImageConfiguration()
- Specified by:
getElasticImageConfiguration
in interfaceElasticAgentDefinition
- Returns:
- ElasticImageConfiguration object
-
setElasticImageConfiguration
public void setElasticImageConfiguration(@NotNull @NotNull ElasticImageConfiguration elasticImageConfiguration)
- Specified by:
setElasticImageConfiguration
in interfaceElasticAgentDefinition
-
accept
public void accept(PipelineDefinitionVisitor visitor)
Description copied from interface:PipelineDefinition
Call back method to perform different actions depending on what type of agent it is- Specified by:
accept
in interfacePipelineDefinition
- Parameters:
visitor
- Visitor object
-
getElasticInstanceId
public String getElasticInstanceId()
- Specified by:
getElasticInstanceId
in interfaceElasticAgentDefinition
-
setElasticInstanceId
public void setElasticInstanceId(String elasticInstanceId)
- Specified by:
setElasticInstanceId
in interfaceElasticAgentDefinition
-
getImageFilesVersion
public String getImageFilesVersion()
- Specified by:
getImageFilesVersion
in interfaceElasticAgentDefinition
-
setImageFilesVersion
public void setImageFilesVersion(String imageFilesVersion)
- Specified by:
setImageFilesVersion
in interfaceElasticAgentDefinition
-
getType
@NotNull public @NotNull AgentType getType()
Description copied from interface:PipelineDefinition
Gets type of the agent- Specified by:
getType
in interfacePipelineDefinition
- Specified by:
getType
in classPipelineDefinitionImpl
- Returns:
- Type of the agent
-
-