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(ElasticInstanceSchedule instanceSchedule)
Given the
ElasticInstanceSchedule startup or bring down the correct number of agents |
String |
getKeyPairName() |
int |
getMaxConcurrentInstances() |
com.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,com.atlassian.fugue.Option<String>> |
getPassword(RemoteElasticInstance instance)
Deprecated.
since 6.2 use
getPassword2(RemoteElasticInstance) instead |
io.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,Optional<String>> |
getPassword2(RemoteElasticInstance instance) |
String |
getPkFileLocation() |
com.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,File> |
getPrivateKeyLocation()
Returns the location of the AWS private key
|
boolean |
isElasticSupportEnabled() |
boolean |
isElasticSupportPossible(ErrorCollection errorCollection) |
void |
recheckElasticSupportEnabledFlag() |
void |
restoreAgent(ElasticAgentDefinition elasticAgentDefinition,
com.amazonaws.services.ec2.model.Instance instance,
com.atlassian.aws.AWSAccount awsAccount) |
void |
setElasticSupportEnabled(boolean elasticSupportEnabled)
Enable/disable Elastic Bamboo functionality
|
void |
shutdownAllInstances() |
void |
shutdownInstance(RemoteElasticInstance elasticInstance) |
void |
shutdownInstance(String instanceId) |
void |
startupAgents(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 String getKeyPairName()
void recheckElasticSupportEnabledFlag()
void shutdownInstance(@NotNull RemoteElasticInstance elasticInstance)
void shutdownInstance(String instanceId) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSException
void shutdownAllInstances()
void startupAgents(@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 ElasticAgentDefinition elasticAgentDefinition, @NotNull com.amazonaws.services.ec2.model.Instance instance, @NotNull com.atlassian.aws.AWSAccount awsAccount)
boolean isElasticSupportEnabled()
void setElasticSupportEnabled(boolean elasticSupportEnabled)
elasticSupportEnabled
- Specifies if Elastc Baboo shall be enabled or disabled.boolean isElasticSupportPossible(@NotNull ErrorCollection errorCollection)
@NotNull String getPkFileLocation()
@NotNull com.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 ElasticInstanceSchedule instanceSchedule) throws com.atlassian.aws.AWSException
ElasticInstanceSchedule
startup or bring down the correct number of agentsinstanceSchedule
- com.atlassian.aws.AWSException
@Deprecated @NotNull com.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,com.atlassian.fugue.Option<String>> getPassword(RemoteElasticInstance instance)
getPassword2(RemoteElasticInstance)
instead@NotNull io.atlassian.fugue.Either<ElasticFunctionalityFacade.Ec2PrivateKeyValidationStatus,Optional<String>> getPassword2(RemoteElasticInstance instance)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.