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
ConstructorDescriptionElasticImageConfigurationAccessorImpl
(@NotNull ElasticImageConfigurationDao elasticImageConfigurationDao, AdministrationConfigurationAccessor administrationConfigurationAccessor) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<ElasticImageConfiguration>
Retrieves all elastic images that are stored in database@NotNull List<ElasticImageConfiguration>
@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>
-
Constructor Details
-
ElasticImageConfigurationAccessorImpl
public ElasticImageConfigurationAccessorImpl(@NotNull @NotNull ElasticImageConfigurationDao elasticImageConfigurationDao, AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
-
Method Details
-
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
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
-