public interface ElasticFunctionalityFacade
| 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 |
int |
getMaxConcurrentInstances() |
String |
getPassword(RemoteElasticInstance instance) |
String |
getPkFileLocation() |
boolean |
isElasticSupportEnabled() |
boolean |
isElasticSupportPossible(ErrorCollection errorCollection) |
void |
recheckElasticSupportEnabledFlag() |
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
void recheckElasticSupportEnabledFlag()
void shutdownInstance(@NotNull
RemoteElasticInstance elasticInstance)
void shutdownInstance(String instanceId) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSExceptionvoid shutdownAllInstances()
void startupAgents(Collection<ElasticImageConfiguration> elasticImageConfigurations) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSExceptionboolean validateAgentCreation(int numAgentsRequired,
ErrorCollection errorCollection)
numAgentsRequired - - number of agents to be createderrorCollection - - error collection to add any validation errors to.boolean isElasticSupportEnabled()
void setElasticSupportEnabled(boolean elasticSupportEnabled)
elasticSupportEnabled - Specifies if Elastc Baboo shall be enabled or disabled.boolean isElasticSupportPossible(@NotNull
ErrorCollection errorCollection)
@NotNull String getPkFileLocation()
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@Nullable String getPassword(RemoteElasticInstance instance) throws com.atlassian.aws.AWSException
com.atlassian.aws.AWSExceptionCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.