Class ElasticImageConfigurationAccessorImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationAccessorImpl
-
- All Implemented Interfaces:
ElasticImageConfigurationAccessor
public class ElasticImageConfigurationAccessorImpl extends Object implements ElasticImageConfigurationAccessor
-
-
Constructor Summary
Constructors Constructor Description ElasticImageConfigurationAccessorImpl(@NotNull ElasticImageConfigurationDao elasticImageConfigurationDao, AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<ElasticImageConfiguration>
getAllElasticImageConfigurations()
Retrieves all elastic images that are stored in database@NotNull List<ElasticImageConfiguration>
getAllElasticImageConfigurationsForCurrentRegion()
@Nullable ElasticImageConfiguration
getElasticImageConfigurationById(long configurationId)
Retrieve an elastic image.@NotNull List<ElasticImageConfiguration>
getElasticImageConfigurationsByName(@NotNull String configurationName, com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
Retrieve an elastic image by name in a given region.@NotNull List<ElasticImageConfiguration>
getElasticImageConfigurationsShippedWithBamboo()
-
-
-
Constructor Detail
-
ElasticImageConfigurationAccessorImpl
public ElasticImageConfigurationAccessorImpl(@NotNull @NotNull ElasticImageConfigurationDao elasticImageConfigurationDao, AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
-
Method Detail
-
getElasticImageConfigurationById
@Nullable public @Nullable ElasticImageConfiguration getElasticImageConfigurationById(long configurationId)
Description copied from interface:ElasticImageConfigurationAccessor
Retrieve an elastic image.- Specified by:
getElasticImageConfigurationById
in interfaceElasticImageConfigurationAccessor
- Parameters:
configurationId
- - id of the ElasticImageConfiguration to find- Returns:
- ElasticImageConfiguration if exists null otherwise.
-
getElasticImageConfigurationsByName
@NotNull public @NotNull List<ElasticImageConfiguration> getElasticImageConfigurationsByName(@NotNull @NotNull String configurationName, @NotNull com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
Description copied from interface:ElasticImageConfigurationAccessor
Retrieve an elastic image by name in a given region.- Specified by:
getElasticImageConfigurationsByName
in interfaceElasticImageConfigurationAccessor
- Parameters:
configurationName
- - name of the ElasticImageConfiguration to findregion
- the region to check- Returns:
- ElasticImageConfiguration if exists null otherwise.
-
getElasticImageConfigurationsShippedWithBamboo
@NotNull public @NotNull List<ElasticImageConfiguration> getElasticImageConfigurationsShippedWithBamboo()
- Specified by:
getElasticImageConfigurationsShippedWithBamboo
in interfaceElasticImageConfigurationAccessor
-
getAllElasticImageConfigurations
@NotNull public @NotNull List<ElasticImageConfiguration> getAllElasticImageConfigurations()
Description copied from interface:ElasticImageConfigurationAccessor
Retrieves all elastic images that are stored in database- Specified by:
getAllElasticImageConfigurations
in interfaceElasticImageConfigurationAccessor
-
getAllElasticImageConfigurationsForCurrentRegion
@NotNull public @NotNull List<ElasticImageConfiguration> getAllElasticImageConfigurationsForCurrentRegion()
- Specified by:
getAllElasticImageConfigurationsForCurrentRegion
in interfaceElasticImageConfigurationAccessor
-
-