com.atlassian.bamboo.v2.build.agent
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, java.lang.Cloneable, java.lang.Comparable
public class ElasticAgentDefinitionImpl
- extends PipelineDefinitionImpl
- implements ElasticAgentDefinition
Defines an Elastic Agent
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition |
getCreationDate, getDescription, getLastModificationDate, getName, getType, isEnabled, setCreationDate, setDescription, setEnabled, setLastModificationDate, setName |
Methods inherited from interface java.lang.Comparable |
compareTo |
ElasticAgentDefinitionImpl
public ElasticAgentDefinitionImpl()
ElasticAgentDefinitionImpl
public ElasticAgentDefinitionImpl(long id,
java.lang.String name)
getLastShutdownTime
public java.util.Date getLastShutdownTime()
- Specified by:
getLastShutdownTime
in interface DistributedProperties
getLastStartupTime
public java.util.Date getLastStartupTime()
- Specified by:
getLastStartupTime
in interface DistributedProperties
setLastShutdownTime
public void setLastShutdownTime(@Nullable
java.util.Date lastShutdownTime)
- Specified by:
setLastShutdownTime
in interface DistributedProperties
setLastStartupTime
public void setLastStartupTime(@Nullable
java.util.Date lastStartupTime)
- Specified by:
setLastStartupTime
in interface DistributedProperties
getAgentUpTime
public long getAgentUpTime()
- Specified by:
getAgentUpTime
in interface DistributedProperties
getElasticImageId
public java.lang.String getElasticImageId()
- Utility method for accessing AmiId of image
- Specified by:
getElasticImageId
in interface ElasticAgentDefinition
- Returns:
getElasticImageConfigurationId
public long getElasticImageConfigurationId()
- Specified by:
getElasticImageConfigurationId
in interface ElasticAgentDefinition
- Returns:
- Id of ElasticImageConfiguration
setElasticImageConfigurationId
public void setElasticImageConfigurationId(long elasticImageConfigurationId)
getElasticImageConfiguration
public ElasticImageConfiguration getElasticImageConfiguration()
- Specified by:
getElasticImageConfiguration
in interface ElasticAgentDefinition
- Returns:
- ElasticImageConfiguration object
setElasticImageConfiguration
public void setElasticImageConfiguration(@NotNull
ElasticImageConfiguration elasticImageConfiguration)
- Specified by:
setElasticImageConfiguration
in interface ElasticAgentDefinition
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 interface PipelineDefinition
- Parameters:
visitor
- Visitor object
getElasticInstanceId
public java.lang.String getElasticInstanceId()
- Specified by:
getElasticInstanceId
in interface ElasticAgentDefinition
setElasticInstanceId
public void setElasticInstanceId(java.lang.String elasticInstanceId)
- Specified by:
setElasticInstanceId
in interface ElasticAgentDefinition
Copyright © 2012 Atlassian. All Rights Reserved.