com.atlassian.bamboo.agent.elastic.server
Interface ElasticFunctionalityFacade

All Known Implementing Classes:
ElasticFunctionalityFacadeImpl

public interface ElasticFunctionalityFacade

Facade that orchestrates EC2 related functionalities


Field Summary
static int DEFAULT_ALLOWED_AGENTS
           
static java.lang.String ELASTIC_BAMBOO_SECURITY_GROUP
          Deprecated. since 3.4 use ElasticInstanceManager.ELASTIC_BAMBOO_SECURITY_GROUP
 
Method Summary
 void addElasticLogEntry(org.apache.log4j.Logger log, java.lang.String logEntry)
           
 void addElasticLogEntry(java.lang.String logEntry)
          Deprecated. since 3.2, use addElasticLogEntry(Logger, String) instead
 void adjustElasticInstanceNumbers(ElasticInstanceSchedule instanceSchedule)
          Given the ElasticInstanceSchedule startup or bring down the correct number of agents
 int getMaxConcurrentInstances()
           
 java.lang.String getPassword(RemoteElasticInstance instance)
           
 java.lang.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(java.lang.String instanceId)
           
 void startupAgents(java.util.Collection<ElasticImageConfiguration> elasticImageConfigurations)
           
 void updateAgentPendingStatus(java.lang.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.
 

Field Detail

ELASTIC_BAMBOO_SECURITY_GROUP

@Deprecated
static final java.lang.String ELASTIC_BAMBOO_SECURITY_GROUP
Deprecated. since 3.4 use ElasticInstanceManager.ELASTIC_BAMBOO_SECURITY_GROUP
See Also:
Constant Field Values

DEFAULT_ALLOWED_AGENTS

static final int DEFAULT_ALLOWED_AGENTS
See Also:
Constant Field Values
Method Detail

recheckElasticSupportEnabledFlag

void recheckElasticSupportEnabledFlag()

shutdownInstance

void shutdownInstance(@NotNull
                      RemoteElasticInstance elasticInstance)

shutdownInstance

void shutdownInstance(java.lang.String instanceId)
                      throws com.atlassian.aws.AWSException
Throws:
com.atlassian.aws.AWSException

shutdownAllInstances

void shutdownAllInstances()

startupAgents

void startupAgents(java.util.Collection<ElasticImageConfiguration> elasticImageConfigurations)
                   throws com.atlassian.aws.AWSException
Throws:
com.atlassian.aws.AWSException

validateAgentCreation

boolean validateAgentCreation(int numAgentsRequired,
                              ErrorCollection errorCollection)
Validates whether the requested number of agents can be created and adds any errors to the error collection.

Parameters:
numAgentsRequired - - number of agents to be created
errorCollection - - error collection to add any validation errors to.

isElasticSupportEnabled

boolean isElasticSupportEnabled()
Returns:
true, if elastic support is turned on

setElasticSupportEnabled

void setElasticSupportEnabled(boolean elasticSupportEnabled)
Enable/disable Elastic Bamboo functionality

Parameters:
elasticSupportEnabled - Specifies if Elastc Baboo shall be enabled or disabled.

isElasticSupportPossible

boolean isElasticSupportPossible(@NotNull
                                 ErrorCollection errorCollection)
Returns:
true, if all preconditions for turning elastic support on are met

getPkFileLocation

@NotNull
java.lang.String getPkFileLocation()

getMaxConcurrentInstances

int getMaxConcurrentInstances()
Returns:
max number of elastic instances allowed for this instance. It's based on license restrictions.

updateAgentPendingStatus

void updateAgentPendingStatus(java.lang.String instanceId)
Set the agent pending status to true for the given instance id

Parameters:
instanceId -

addElasticLogEntry

@Deprecated
void addElasticLogEntry(java.lang.String logEntry)
Deprecated. since 3.2, use addElasticLogEntry(Logger, String) instead


addElasticLogEntry

void addElasticLogEntry(org.apache.log4j.Logger log,
                        java.lang.String logEntry)

adjustElasticInstanceNumbers

void adjustElasticInstanceNumbers(@NotNull
                                  ElasticInstanceSchedule instanceSchedule)
                                  throws com.atlassian.aws.AWSException
Given the ElasticInstanceSchedule startup or bring down the correct number of agents

Parameters:
instanceSchedule -
Throws:
com.atlassian.aws.AWSException

getPassword

@Nullable
java.lang.String getPassword(RemoteElasticInstance instance)
                             throws com.atlassian.aws.AWSException
Throws:
com.atlassian.aws.AWSException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.