-
Method Summary
Get Elastic Image Configuration from its id
Get all Elastic Image Configuration objects
int
Get the number of elastic agents associated with a given image configuration
int
Returns all elastic agents associated with a specific image configuration
Retrieves a list of elastic agenst associated with the given elastic image configuration
Retrieves a list of all elastic image configurations that use a specific image.
Finds an elastic configuration by name in a given region.
getImages(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.RootDeviceType rootDeviceType,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Architecture architectureType,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Platform platform,
@Nullable Boolean shippedWithBamboo)
void
void
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
Method Details
-
getAll
Get all Elastic Image Configuration objects
- Returns:
- Collection of Elastic Image Configuration objects (empty if none found)
-
findById
Get Elastic Image Configuration from its id
- Specified by:
findById
in interface BambooObjectDao
- Parameters:
id
- Elastic Image Configuration's id
- Returns:
- Elastic Image Configuration object or null if not found
-
getElasticAgentCountForImageConfigurationId
int getElasticAgentCountForImageConfigurationId(long id)
Returns all elastic agents associated with a specific image configuration
- Parameters:
id
- for the image configuration
- Returns:
- count of the elastic agent associated with the given image configuration
-
getBuildCountForImageConfigurationId
int getBuildCountForImageConfigurationId(long id)
Get the number of elastic agents associated with a given image configuration
- Parameters:
id
- for the image configuration
- Returns:
- count of the builds associated with the given image configuration
-
getElasticImageConfigurationsByName
@NotNull
@NotNull List<ElasticImageConfiguration> getElasticImageConfigurationsByName(String configurationName,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
Finds an elastic configuration by name in a given region.
- Parameters:
configurationName
- name to look for
region
- region to check
- Returns:
- the elasticImageConfig with the given name.
-
-
-
-
getElasticAgentsForImageConfigurationId
Retrieves a list of elastic agenst associated with the given elastic image configuration
- Parameters:
id
- of the elasticImageConfiguration
-
getElasticImageConfigurationByAmi
Retrieves a list of all elastic image configurations that use a specific image.
- Parameters:
amiId
- to filter with
- Returns:
- list of ElasticAgentDefinition objects that use the given amiID