com.atlassian.bamboo.agent.elastic.server
Class ElasticImageConfigurationImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl
All Implemented Interfaces:
ElasticImageConfiguration, BambooObject, java.lang.Cloneable, java.lang.Comparable<ElasticImageConfigurationImpl>

public class ElasticImageConfigurationImpl
extends BambooEntityObject
implements ElasticImageConfiguration, java.lang.Comparable<ElasticImageConfigurationImpl>


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
ElasticImageConfigurationImpl()
           
ElasticImageConfigurationImpl(long id)
           
 
Method Summary
 int compareTo(ElasticImageConfigurationImpl o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getAmiId()
          Get Elastic Instance Configuration's EC2 AMI id.
 java.lang.String getAvailabilityZone()
          Get Availability Zone for Elastic Instance Configuration.
 ImageCapabilitySet getCapabilitySet()
           
 java.lang.String getConfigurationDescription()
          Get Elastic Instance Configuration's description.
 java.lang.String getConfigurationName()
          Get Elastic Instance Configuration's name.
 java.lang.String getEbsSnapshotId()
          Get Elastic Instance Configuration's EBS snapshot id.
 com.atlassian.aws.ec2.EC2InstanceType getInstanceType()
          Get Elastic Instance Configuration type.
 int hashCode()
           
 boolean isDisabled()
           
 boolean isEbsEnabled()
          Get Elastic Instance Configuration's EBS status.
 boolean isShippedWithBamboo()
          Is set for default configuration.
 void setAmiId(java.lang.String amiId)
          Set the Elastic Instance Configuration's EC2 AMI id (image)
 void setAvailabilityZone(java.lang.String availabilityZone)
          Set Availability Zone for Elastic Instance Configuration.
 void setCapabilitySet(ImageCapabilitySet imageCapabilitySet)
           
 void setConfigurationDescription(java.lang.String configurationDescription)
           
 void setConfigurationName(java.lang.String configurationName)
           
 void setDisabled(boolean disabled)
          Set Disabled field for Elastic Instance Configuration
 void setEbsSnapshotId(java.lang.String ebsSnapshotId)
           
 void setInstanceType(com.atlassian.aws.ec2.EC2InstanceType instanceType)
           
 void setShippedWithBamboo(boolean shippedWithBamboo)
           
 
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.core.BambooObject
getId, setId
 

Constructor Detail

ElasticImageConfigurationImpl

public ElasticImageConfigurationImpl()

ElasticImageConfigurationImpl

public ElasticImageConfigurationImpl(long id)
Method Detail

getConfigurationName

public java.lang.String getConfigurationName()
Description copied from interface: ElasticImageConfiguration
Get Elastic Instance Configuration's name.

Specified by:
getConfigurationName in interface ElasticImageConfiguration
Returns:
Elastic Instance Configuration's name

setConfigurationName

public void setConfigurationName(java.lang.String configurationName)

getAmiId

public java.lang.String getAmiId()
Description copied from interface: ElasticImageConfiguration
Get Elastic Instance Configuration's EC2 AMI id.

Specified by:
getAmiId in interface ElasticImageConfiguration
Returns:
Elastic Instance Configuration's EC2 AMI id

setAmiId

public void setAmiId(java.lang.String amiId)
Description copied from interface: ElasticImageConfiguration
Set the Elastic Instance Configuration's EC2 AMI id (image)

Specified by:
setAmiId in interface ElasticImageConfiguration
Parameters:
amiId - - Elastic Instance Configuration's EC2 AMI id

isEbsEnabled

public boolean isEbsEnabled()
Description copied from interface: ElasticImageConfiguration
Get Elastic Instance Configuration's EBS status.

Specified by:
isEbsEnabled in interface ElasticImageConfiguration
Returns:
Elastic Instance Configuration's EBS status

getEbsSnapshotId

public java.lang.String getEbsSnapshotId()
Description copied from interface: ElasticImageConfiguration
Get Elastic Instance Configuration's EBS snapshot id.

Specified by:
getEbsSnapshotId in interface ElasticImageConfiguration
Returns:
Elastic Instance Configuration's EBS snapshot id

setEbsSnapshotId

public void setEbsSnapshotId(java.lang.String ebsSnapshotId)

getInstanceType

public com.atlassian.aws.ec2.EC2InstanceType getInstanceType()
Description copied from interface: ElasticImageConfiguration
Get Elastic Instance Configuration type.

Specified by:
getInstanceType in interface ElasticImageConfiguration
Returns:
Elastic Instance Configuration type

setInstanceType

public void setInstanceType(com.atlassian.aws.ec2.EC2InstanceType instanceType)

getAvailabilityZone

public java.lang.String getAvailabilityZone()
Description copied from interface: ElasticImageConfiguration
Get Availability Zone for Elastic Instance Configuration.

Specified by:
getAvailabilityZone in interface ElasticImageConfiguration
Returns:
Name of Availability Zone

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
Description copied from interface: ElasticImageConfiguration
Set Availability Zone for Elastic Instance Configuration.

Specified by:
setAvailabilityZone in interface ElasticImageConfiguration
Parameters:
availabilityZone - Name of Availability Zone to be setup.

getConfigurationDescription

public java.lang.String getConfigurationDescription()
Description copied from interface: ElasticImageConfiguration
Get Elastic Instance Configuration's description.

Specified by:
getConfigurationDescription in interface ElasticImageConfiguration
Returns:
Elastic Instance Configuration's description

setConfigurationDescription

public void setConfigurationDescription(java.lang.String configurationDescription)

isShippedWithBamboo

public boolean isShippedWithBamboo()
Description copied from interface: ElasticImageConfiguration
Is set for default configuration. Currently it is configuration shipped with Bamboo

Specified by:
isShippedWithBamboo in interface ElasticImageConfiguration
Returns:
True if configuration is marked as "shipped with Bamboo"

setShippedWithBamboo

public void setShippedWithBamboo(boolean shippedWithBamboo)

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface ElasticImageConfiguration
Returns:
returns whether the Elastic Configuration is disabled

setDisabled

public void setDisabled(boolean disabled)
Description copied from interface: ElasticImageConfiguration
Set Disabled field for Elastic Instance Configuration

Specified by:
setDisabled in interface ElasticImageConfiguration

getCapabilitySet

@NotNull
public ImageCapabilitySet getCapabilitySet()
Specified by:
getCapabilitySet in interface ElasticImageConfiguration
Returns:
Capability Set associated with this Elastic Instance Configuration

setCapabilitySet

public void setCapabilitySet(@NotNull
                             ImageCapabilitySet imageCapabilitySet)

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

compareTo

public int compareTo(ElasticImageConfigurationImpl o)
Specified by:
compareTo in interface java.lang.Comparable<ElasticImageConfigurationImpl>


Copyright © 2011 Atlassian. All Rights Reserved.