com.atlassian.bamboo.agent.elastic.server
Interface ElasticImageConfigurationManager

All Superinterfaces:
ElasticImageConfigurationAccessor
All Known Implementing Classes:
ElasticImageConfigurationManagerImpl

public interface ElasticImageConfigurationManager
extends ElasticImageConfigurationAccessor

Manager for managing all Bamboo-side AWS (Elastic) stuff. Does population of specific details via system properties.


Field Summary
static java.lang.String DEFAULT_AVAILABILITY_ZONE
           
static java.lang.String IMAGE_CAPABILITIES_FILE
           
static java.lang.String WINDOWS_IMAGE_CAPABILITIES_FILE
           
 
Method Summary
 void disableElasticImageSchedules(ElasticImageConfiguration elasticImageConfiguration)
          Disable all enabled Elastic Image Schedules associated with the Elastic Image Configuration
 int getBuildsCountForImageConfiguration(long id)
          Returns how many builds have been built against the given build configuration.
 int getElasticAgentCountForImageConfiguration(long id)
          How many elastic agents are associated with a specific image configuration.
 void populateDefaultCapabilitySet(CapabilitySet capabilitySet, com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Platform imagePlatform)
          Populates capability set with default capabilities from from IMAGE_CAPABILITIES_FILE.
 void removeElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
          Delete an elastic image configuration.
 void saveElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
          Save an elastic image configuration.
 void updateDefaultElasticImageConfiguration()
          Performs startup operations for setting up an elastic image, including retrieving capability information.
 
Methods inherited from interface com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationAccessor
getAllElasticImageConfigurations, getAllElasticImageConfigurationsForCurrentRegion, getElasticImageConfigurationById, getElasticImageConfigurationByName, getElasticImageConfigurationShippedWithBamboo, getElasticImageConfigurationsShippedWithBamboo
 

Field Detail

IMAGE_CAPABILITIES_FILE

static final java.lang.String IMAGE_CAPABILITIES_FILE
See Also:
Constant Field Values

WINDOWS_IMAGE_CAPABILITIES_FILE

static final java.lang.String WINDOWS_IMAGE_CAPABILITIES_FILE
See Also:
Constant Field Values

DEFAULT_AVAILABILITY_ZONE

static final java.lang.String DEFAULT_AVAILABILITY_ZONE
See Also:
Constant Field Values
Method Detail

getElasticAgentCountForImageConfiguration

int getElasticAgentCountForImageConfiguration(long id)
How many elastic agents are associated with a specific image configuration.

Parameters:
id - of the image configuration
Returns:
count of the elastic agents.

getBuildsCountForImageConfiguration

int getBuildsCountForImageConfiguration(long id)
Returns how many builds have been built against the given build configuration.

Parameters:
id - of the elastic image configuration
Returns:
count of build results.

saveElasticImageConfiguration

void saveElasticImageConfiguration(@NotNull
                                   ElasticImageConfiguration elasticImageConfiguration)
Save an elastic image configuration.

Parameters:
elasticImageConfiguration - Elastic Image Configuration to be saved.

removeElasticImageConfiguration

void removeElasticImageConfiguration(@NotNull
                                     ElasticImageConfiguration elasticImageConfiguration)
                                     throws java.lang.Exception
Delete an elastic image configuration. That includes unscheduling and deleting related ElasticInstanceSchedule objects

Parameters:
elasticImageConfiguration - Elastic Image Configuration to be deleted.
Throws:
java.lang.Exception - if the corresponding agent it needs to delete doesn't shutdown properly

disableElasticImageSchedules

void disableElasticImageSchedules(@NotNull
                                  ElasticImageConfiguration elasticImageConfiguration)
Disable all enabled Elastic Image Schedules associated with the Elastic Image Configuration

Parameters:
elasticImageConfiguration -

updateDefaultElasticImageConfiguration

void updateDefaultElasticImageConfiguration()
                                            throws java.lang.Exception
Performs startup operations for setting up an elastic image, including retrieving capability information.

Throws:
java.lang.Exception - if it can not find the default image information to setup

populateDefaultCapabilitySet

void populateDefaultCapabilitySet(CapabilitySet capabilitySet,
                                  com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Platform imagePlatform)
Populates capability set with default capabilities from from IMAGE_CAPABILITIES_FILE. Will overwrite any existing capabilities.

Parameters:
capabilitySet - to populate with the defaults.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.