com.atlassian.bamboo.v2.build.agent
Class ElasticAgentDefinitionImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
              extended by com.atlassian.bamboo.v2.build.agent.ElasticAgentDefinitionImpl
All Implemented Interfaces:
ElasticAgentDefinition, PipelineDefinition, DistributedProperties, BambooObject, java.lang.Cloneable, java.lang.Comparable

public class ElasticAgentDefinitionImpl
extends PipelineDefinitionImpl
implements ElasticAgentDefinition

Defines an Elastic Agent


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.buildqueue.PipelineDefinition
PipelineDefinition.TYPE
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
name
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
ElasticAgentDefinitionImpl()
           
ElasticAgentDefinitionImpl(long id, java.lang.String name)
           
 
Method Summary
 void accept(PipelineDefinitionVisitor visitor)
          Call back method to perform different actions depending on what type of agent it is
 long getAgentUpTime()
           
 ElasticImageConfiguration getElasticImageConfiguration()
           
 long getElasticImageConfigurationId()
           
 java.lang.String getElasticImageId()
          Utility method for accessing AmiId of image
 java.lang.String getElasticInstanceId()
           
 java.util.Date getLastShutdownTime()
           
 java.util.Date getLastStartupTime()
           
 void setElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
           
 void setElasticImageConfigurationId(long elasticImageConfigurationId)
           
 void setElasticInstanceId(java.lang.String elasticInstanceId)
           
 void setLastShutdownTime(java.util.Date lastShutdownTime)
           
 void setLastStartupTime(java.util.Date lastStartupTime)
           
 
Methods inherited from class com.atlassian.bamboo.v2.build.agent.PipelineDefinitionImpl
compareTo, equals, getDescription, getName, getType, hashCode, isEnabled, setDescription, setEnabled, setName
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
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 com.atlassian.bamboo.core.BambooObject
getId, setId
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ElasticAgentDefinitionImpl

public ElasticAgentDefinitionImpl()

ElasticAgentDefinitionImpl

public ElasticAgentDefinitionImpl(long id,
                                  java.lang.String name)
Method Detail

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 © 2010 Atlassian. All Rights Reserved.