public interface ElasticImageConfigurationDao extends BambooObjectDao
| Modifier and Type | Method and Description |
|---|---|
@Nullable ElasticImageConfiguration |
findById(long id)
Get Elastic Image Configuration from its id
|
@NotNull 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.
|
@NotNull List<ElasticImageConfiguration> |
getElasticImageConfigurationsByName(String configurationName,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
Finds an elastic configuration by name in a given region.
|
@NotNull 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,
@Nullable Boolean shippedWithBamboo) |
void |
remove(@NotNull ElasticImageConfiguration elasticImageConfiguration) |
void |
save(@NotNull ElasticImageConfiguration elasticImageConfiguration) |
@NotNull @NotNull List<ElasticImageConfiguration> getAll()
@Nullable @Nullable ElasticImageConfiguration findById(long id)
findById in interface BambooObjectDaoid - Elastic Image Configuration's idint getElasticAgentCountForImageConfigurationId(long id)
id - for the image configurationint getBuildCountForImageConfigurationId(long id)
id - for the image configuration@NotNull @NotNull List<ElasticImageConfiguration> getElasticImageConfigurationsByName(String configurationName, com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
configurationName - name to look forregion - region to checkvoid save(@NotNull
@NotNull ElasticImageConfiguration elasticImageConfiguration)
void remove(@NotNull
@NotNull ElasticImageConfiguration elasticImageConfiguration)
@NotNull @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 @Nullable Boolean shippedWithBamboo)
List<ElasticAgentDefinition> getElasticAgentsForImageConfigurationId(long id)
id - of the elasticImageConfigurationList<ElasticImageConfiguration> getElasticImageConfigurationByAmi(String amiId)
amiId - to filter withCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.