|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationManagerImpl
public class ElasticImageConfigurationManagerImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationManager |
---|
DEFAULT_AVAILABILITY_ZONE, IMAGE_CAPABILITIES_FILE |
Constructor Summary | |
---|---|
ElasticImageConfigurationManagerImpl(ElasticImageConfigurationDao elasticImageConfigurationDao,
ResourceResolver resourceResolver,
ElasticInstanceManager elasticInstanceManager,
ElasticImageConfigurationAccessor elasticImageConfigurationAccessor,
LocalAgentManager localAgentManager)
|
Method Summary | |
---|---|
java.util.List<ElasticImageConfiguration> |
getAllElasticImageConfigurations()
Retrieves all elastic imagess that are stored in database |
int |
getBuildsCountForImageConfiguration(long id)
Returns how many builds have been built against the given build configuration. |
int |
getElasticAgentCountForImageConfiguration(long id)
How many elastic agents are associated with a specific image configuration. |
ElasticImageConfiguration |
getElasticImageConfigurationById(long configurationId)
Retrieve an elastic image. |
ElasticImageConfiguration |
getElasticImageConfigurationByName(java.lang.String configurationName)
Retrieve an elastic image by name. |
ElasticImageConfiguration |
getElasticImageConfigurationShippedWithBamboo()
Retrieve an elastic image configuration shipped with Bamboo |
void |
populateDefaultCapabilitySet(CapabilitySet capabilitySet)
Populates capability set with default capabilities from from ElasticImageConfigurationManager.IMAGE_CAPABILITIES_FILE . |
void |
removeElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
Delete an elastic image configuration. |
void |
saveElasticImageConfiguration(ElasticImageConfiguration elasticImageConfiguration)
Save an elastic image configuration. |
void |
updateDefaultElasticImageConfiguration()
Performs startup operations for setting up an elastic image, including retrieving capability information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElasticImageConfigurationManagerImpl(ElasticImageConfigurationDao elasticImageConfigurationDao, ResourceResolver resourceResolver, ElasticInstanceManager elasticInstanceManager, ElasticImageConfigurationAccessor elasticImageConfigurationAccessor, LocalAgentManager localAgentManager)
Method Detail |
---|
@Nullable public ElasticImageConfiguration getElasticImageConfigurationById(long configurationId)
ElasticImageConfigurationAccessor
getElasticImageConfigurationById
in interface ElasticImageConfigurationAccessor
configurationId
- - id of the ElasticImageConfiguration to find
@Nullable public ElasticImageConfiguration getElasticImageConfigurationByName(java.lang.String configurationName)
ElasticImageConfigurationAccessor
getElasticImageConfigurationByName
in interface ElasticImageConfigurationAccessor
configurationName
- - name of the ElasticImageConfiguration to find
@Nullable public ElasticImageConfiguration getElasticImageConfigurationShippedWithBamboo()
ElasticImageConfigurationAccessor
getElasticImageConfigurationShippedWithBamboo
in interface ElasticImageConfigurationAccessor
@NotNull public java.util.List<ElasticImageConfiguration> getAllElasticImageConfigurations()
ElasticImageConfigurationAccessor
getAllElasticImageConfigurations
in interface ElasticImageConfigurationAccessor
public void saveElasticImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration)
ElasticImageConfigurationManager
saveElasticImageConfiguration
in interface ElasticImageConfigurationManager
elasticImageConfiguration
- Elastic Image Configuration to be saved.public int getElasticAgentCountForImageConfiguration(long id)
ElasticImageConfigurationManager
getElasticAgentCountForImageConfiguration
in interface ElasticImageConfigurationManager
id
- of the image configuration
public int getBuildsCountForImageConfiguration(long id)
ElasticImageConfigurationManager
getBuildsCountForImageConfiguration
in interface ElasticImageConfigurationManager
id
- of the elastic image configuration
public void removeElasticImageConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration) throws com.atlassian.aws.AWSException
ElasticImageConfigurationManager
removeElasticImageConfiguration
in interface ElasticImageConfigurationManager
elasticImageConfiguration
- Elastic Image Configuration to be deleted.
com.atlassian.aws.AWSException
public void updateDefaultElasticImageConfiguration() throws java.lang.Exception
ElasticImageConfigurationManager
updateDefaultElasticImageConfiguration
in interface ElasticImageConfigurationManager
java.lang.Exception
- if it can not find the default image information to setuppublic void populateDefaultCapabilitySet(CapabilitySet capabilitySet)
ElasticImageConfigurationManager
ElasticImageConfigurationManager.IMAGE_CAPABILITIES_FILE
.
Will overwrite any existing capabilities.
populateDefaultCapabilitySet
in interface ElasticImageConfigurationManager
capabilitySet
- to populate with the defaults.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |