public interface ElasticImageConfigurationDao extends BambooObjectDao
Modifier and Type | Method and Description |
---|---|
ElasticImageConfiguration |
findById(long id)
Get Elastic Image Configuration from its id
|
List<ElasticImageConfiguration> |
getAll()
Get all Elastic Image Configuration objects
|
int |
getBuildCountForImageConfigurationId(long id)
Get the number of elastic agents associated with a given image configuration
|
int |
getElasticAgentCountForImageConfigurationId(long id)
Returns all elastic agents associated with a specific image configuration
|
List<ElasticAgentDefinition> |
getElasticAgentsForImageConfigurationId(long id)
Retrieves a list of elastic agenst associated with the given elastic image configuration
|
List<ElasticImageConfiguration> |
getElasticImageConfigurationByAmi(String amiId)
Retrieves a list of all elastic image configurations that use a specific image.
|
List<ElasticImageConfiguration> |
getElasticImageConfigurationsByName(String configurationName,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
Finds an elastic configuration by name in a given region.
|
List<ElasticImageConfiguration> |
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,
Boolean shippedWithBamboo) |
void |
remove(ElasticImageConfiguration elasticImageConfiguration) |
void |
save(ElasticImageConfiguration elasticImageConfiguration) |
@NotNull List<ElasticImageConfiguration> getAll()
@Nullable ElasticImageConfiguration findById(long id)
findById
in interface BambooObjectDao
id
- Elastic Image Configuration's idint getElasticAgentCountForImageConfigurationId(long id)
id
- for the image configurationint getBuildCountForImageConfigurationId(long id)
id
- for the image configuration@NotNull List<ElasticImageConfiguration> getElasticImageConfigurationsByName(String configurationName, com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
configurationName
- name to look forregion
- region to checkvoid save(@NotNull ElasticImageConfiguration elasticImageConfiguration)
void remove(@NotNull ElasticImageConfiguration elasticImageConfiguration)
@NotNull List<ElasticImageConfiguration> getImages(@Nullable com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, @Nullable com.atlassian.aws.ec2.awssdk.AwsSupportConstants.RootDeviceType rootDeviceType, @Nullable com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Architecture architectureType, @Nullable com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Platform platform, @Nullable Boolean shippedWithBamboo)
List<ElasticAgentDefinition> getElasticAgentsForImageConfigurationId(long id)
id
- of the elasticImageConfigurationList<ElasticImageConfiguration> getElasticImageConfigurationByAmi(String amiId)
amiId
- to filter withCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.