public interface ElasticImageConfigurationManager extends ElasticImageConfigurationAccessor
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AVAILABILITY_ZONE |
static String |
IMAGE_CAPABILITIES_FILE |
static String |
WINDOWS_IMAGE_CAPABILITIES_FILE |
Modifier and Type | Method and Description |
---|---|
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,
ElasticImageConfiguration imageConfiguration)
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.
|
getAllElasticImageConfigurations, getAllElasticImageConfigurationsForCurrentRegion, getElasticImageConfigurationById, getElasticImageConfigurationByName, getElasticImageConfigurationsByName, getElasticImageConfigurationsShippedWithBamboo
static final String IMAGE_CAPABILITIES_FILE
static final String WINDOWS_IMAGE_CAPABILITIES_FILE
static final String DEFAULT_AVAILABILITY_ZONE
int getElasticAgentCountForImageConfiguration(long id)
id
- of the image configurationint getBuildsCountForImageConfiguration(long id)
id
- of the elastic image configurationvoid saveElasticImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration)
elasticImageConfiguration
- Elastic Image Configuration to be saved.void removeElasticImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration) throws Exception
ElasticInstanceSchedule
objectselasticImageConfiguration
- Elastic Image Configuration to be deleted.Exception
- if the corresponding agent it needs to delete doesn't shutdown properlyvoid disableElasticImageSchedules(@NotNull ElasticImageConfiguration elasticImageConfiguration)
elasticImageConfiguration
- void updateDefaultElasticImageConfiguration() throws Exception
Exception
- if it can not find the default image information to setupvoid populateDefaultCapabilitySet(CapabilitySet capabilitySet, ElasticImageConfiguration imageConfiguration)
IMAGE_CAPABILITIES_FILE
.
Will overwrite any existing capabilities.capabilitySet
- to populate with the defaults.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.