public interface ElasticFunctionalityFacade
Modifier and Type | Interface and Description |
---|---|
static class |
ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ALLOWED_AGENTS |
Modifier and Type | Method and Description |
---|---|
void |
addElasticLogEntry(org.apache.log4j.Logger log,
String logEntry) |
void |
adjustElasticInstanceNumbers(@NotNull ElasticInstanceSchedule instanceSchedule)
Given the
ElasticInstanceSchedule startup or bring down the correct number of agents |
void |
cleanupCredentials()
Cleanup EC2 credentials and disable EC2 support
|
@NotNull String |
getKeyPairName() |
int |
getMaxConcurrentInstances() |
@NotNull io.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,Optional<String>> |
getPassword(RemoteElasticInstance instance) |
@NotNull String |
getPkFileLocation() |
@NotNull io.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,File> |
getPrivateKeyLocation()
Returns the location of the AWS private key
|
boolean |
isElasticSupportEnabled() |
boolean |
isElasticSupportPossible(@NotNull ErrorCollection errorCollection) |
void |
persistTunnelDataOfInstance(@NotNull ElasticAgentDefinition pipelineDefinition)
Persist data related to tunnel configuration of an elastic instance.
|
void |
recheckElasticSupportEnabledFlag() |
void |
restoreAgent(@NotNull ElasticAgentDefinition elasticAgentDefinition,
@NotNull com.amazonaws.services.ec2.model.Instance instance,
@NotNull com.atlassian.aws.AWSAccount awsAccount) |
void |
setElasticSupportEnabled(boolean elasticSupportEnabled)
Enable/disable Elastic Bamboo functionality
|
void |
shutdownAllInstances() |
void |
shutdownInstance(@NotNull RemoteElasticInstance elasticInstance) |
void |
shutdownInstance(String instanceId) |
void |
startupAgents(@NotNull Collection<ElasticImageConfiguration> elasticImageConfigurations) |
void |
updateAgentPendingStatus(String instanceId)
Set the agent pending status to true for the given instance id
|
boolean |
validateAgentCreation(int numAgentsRequired,
ErrorCollection errorCollection)
Validates whether the requested number of agents can be created and adds any errors to the
error collection.
|
static final int DEFAULT_ALLOWED_AGENTS
@NotNull @NotNull String getKeyPairName()
void recheckElasticSupportEnabledFlag()
void shutdownInstance(@NotNull @NotNull RemoteElasticInstance elasticInstance)
void shutdownInstance(String instanceId) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSException
void shutdownAllInstances()
void startupAgents(@NotNull @NotNull Collection<ElasticImageConfiguration> elasticImageConfigurations) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSException
boolean validateAgentCreation(int numAgentsRequired, ErrorCollection errorCollection)
numAgentsRequired
- - number of agents to be createderrorCollection
- - error collection to add any validation errors to.void restoreAgent(@NotNull @NotNull ElasticAgentDefinition elasticAgentDefinition, @NotNull @NotNull com.amazonaws.services.ec2.model.Instance instance, @NotNull @NotNull com.atlassian.aws.AWSAccount awsAccount)
void persistTunnelDataOfInstance(@NotNull @NotNull ElasticAgentDefinition pipelineDefinition)
boolean isElasticSupportEnabled()
void setElasticSupportEnabled(boolean elasticSupportEnabled)
elasticSupportEnabled
- Specifies if Elastc Baboo shall be enabled or disabled.boolean isElasticSupportPossible(@NotNull @NotNull ErrorCollection errorCollection)
@NotNull @NotNull String getPkFileLocation()
@NotNull @NotNull io.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,File> getPrivateKeyLocation()
int getMaxConcurrentInstances()
void updateAgentPendingStatus(String instanceId)
instanceId
- void addElasticLogEntry(org.apache.log4j.Logger log, String logEntry)
void adjustElasticInstanceNumbers(@NotNull @NotNull ElasticInstanceSchedule instanceSchedule) throws com.atlassian.aws.AWSException
ElasticInstanceSchedule
startup or bring down the correct number of agentsinstanceSchedule
- com.atlassian.aws.AWSException
@NotNull @NotNull io.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,Optional<String>> getPassword(RemoteElasticInstance instance)
void cleanupCredentials()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences