public class ElasticImageConfigurationHibernateDao extends BambooHibernateObjectDao implements ElasticImageConfigurationDao
Constructor and Description |
---|
ElasticImageConfigurationHibernateDao() |
Modifier and Type | Method and Description |
---|---|
ElasticImageConfiguration |
findById(long id)
Gets the object 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.
|
ElasticImageConfiguration |
getElasticImageConfigurationByName(String configurationName)
Finds an elastic configuration by name.
|
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 architecture,
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Platform platform,
Boolean isShippedWithBamboo) |
Class<ElasticImageConfigurationImpl> |
getPersistentClass() |
void |
remove(ElasticImageConfiguration elasticImageConfiguration) |
void |
save(ElasticImageConfiguration elasticImageConfiguration) |
findAll, findAllSorted, findById, refresh, remove, replicate, save, saveRaw, setIndexer, updateModificationData
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
public ElasticImageConfigurationHibernateDao()
@NotNull public List<ElasticImageConfiguration> getAll()
ElasticImageConfigurationDao
getAll
in interface ElasticImageConfigurationDao
public int getElasticAgentCountForImageConfigurationId(long id)
ElasticImageConfigurationDao
getElasticAgentCountForImageConfigurationId
in interface ElasticImageConfigurationDao
id
- for the image configurationpublic List<ElasticAgentDefinition> getElasticAgentsForImageConfigurationId(long id)
ElasticImageConfigurationDao
getElasticAgentsForImageConfigurationId
in interface ElasticImageConfigurationDao
id
- of the elasticImageConfigurationpublic List<ElasticImageConfiguration> getElasticImageConfigurationByAmi(String amiId)
getElasticImageConfigurationByAmi
in interface ElasticImageConfigurationDao
amiId
- to filter withpublic int getBuildCountForImageConfigurationId(long id)
ElasticImageConfigurationDao
getBuildCountForImageConfigurationId
in interface ElasticImageConfigurationDao
id
- for the image configurationpublic Class<ElasticImageConfigurationImpl> getPersistentClass()
getPersistentClass
in interface bucket.core.persistence.ObjectDao
public void save(@NotNull ElasticImageConfiguration elasticImageConfiguration)
save
in interface ElasticImageConfigurationDao
public void remove(@NotNull ElasticImageConfiguration elasticImageConfiguration)
remove
in interface ElasticImageConfigurationDao
@NotNull public 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 architecture, @Nullable com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Platform platform, @Nullable Boolean isShippedWithBamboo)
getImages
in interface ElasticImageConfigurationDao
public ElasticImageConfiguration getElasticImageConfigurationByName(String configurationName)
ElasticImageConfigurationDao
getElasticImageConfigurationByName
in interface ElasticImageConfigurationDao
configurationName
- to look for@NotNull public List<ElasticImageConfiguration> getElasticImageConfigurationsByName(String configurationName, com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)
ElasticImageConfigurationDao
getElasticImageConfigurationsByName
in interface ElasticImageConfigurationDao
configurationName
- name to look forregion
- region to checkpublic ElasticImageConfiguration findById(long id)
BambooObjectDao
findById
in interface ElasticImageConfigurationDao
findById
in interface BambooObjectDao
findById
in class BambooHibernateObjectDao
id
- Elastic Image Configuration's idBambooObject
. null if not found.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.