|
||||||||||
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.ElasticFunctionalityFacadeImpl
public class ElasticFunctionalityFacadeImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.agent.elastic.server.ElasticFunctionalityFacade |
---|
DEFAULT_ALLOWED_AGENTS, ELASTIC_BAMBOO_SECURITY_GROUP |
Constructor Summary | |
---|---|
ElasticFunctionalityFacadeImpl()
|
Method Summary | |
---|---|
void |
addElasticLogEntry(org.apache.log4j.Logger log,
java.lang.String logEntry)
|
void |
addElasticLogEntry(java.lang.String logEntry)
|
void |
adjustElasticInstanceNumbers(ElasticInstanceSchedule instanceSchedule)
Given the ElasticInstanceSchedule startup or bring down the correct number of agents |
protected void |
attemptShutdownInstances(java.util.Collection<RemoteElasticInstance> instances,
int agentsToShutdown,
ElasticImageConfiguration elasticImageConfiguration)
|
int |
getMaxConcurrentInstances()
|
java.lang.String |
getPassword(RemoteElasticInstance instance)
|
java.lang.String |
getPkFileLocation()
|
boolean |
isElasticSupportEnabled()
|
boolean |
isElasticSupportPossible(ErrorCollection errorCollection)
|
void |
recheckElasticSupportEnabledFlag()
|
void |
setAgentManager(AgentManager agentManager)
|
void |
setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
|
void |
setAwsAccountBean(AwsAccountBean awsAccountBean)
|
void |
setBambooLicenseManager(BambooLicenseManager bambooLicenseManager)
|
void |
setElasticAccountBean(ElasticAccountBean elasticAccountBean)
|
void |
setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)
|
void |
setElasticImageConfigurationAccessor(ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)
|
void |
setElasticSupportEnabled(boolean elasticSupportEnabled)
Enable/disable Elastic Bamboo functionality |
void |
setRemoteAgentManager(RemoteAgentManager remoteAgentManager)
|
void |
setStopBuildManager(StopBuildManager stopBuildManager)
|
void |
setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
|
void |
shutdownAllInstances()
|
void |
shutdownInstance(RemoteElasticInstance elasticInstance)
|
void |
shutdownInstance(java.lang.String instanceId)
|
void |
startupAgents(java.util.Collection<ElasticImageConfiguration> elasticImageConfigurations)
Starts the given number of agents |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElasticFunctionalityFacadeImpl()
Method Detail |
---|
public void recheckElasticSupportEnabledFlag()
recheckElasticSupportEnabledFlag
in interface ElasticFunctionalityFacade
public void shutdownInstance(@NotNull RemoteElasticInstance elasticInstance)
shutdownInstance
in interface ElasticFunctionalityFacade
public void shutdownInstance(java.lang.String instanceId) throws com.atlassian.aws.AWSException
shutdownInstance
in interface ElasticFunctionalityFacade
com.atlassian.aws.AWSException
public void shutdownAllInstances()
shutdownAllInstances
in interface ElasticFunctionalityFacade
public void startupAgents(java.util.Collection<ElasticImageConfiguration> elasticImageConfigurations) throws com.atlassian.aws.AWSException
startupAgents
in interface ElasticFunctionalityFacade
com.atlassian.aws.AWSException
public boolean isElasticSupportEnabled()
isElasticSupportEnabled
in interface ElasticFunctionalityFacade
public boolean isElasticSupportPossible(@NotNull ErrorCollection errorCollection)
isElasticSupportPossible
in interface ElasticFunctionalityFacade
public void setElasticSupportEnabled(boolean elasticSupportEnabled)
ElasticFunctionalityFacade
setElasticSupportEnabled
in interface ElasticFunctionalityFacade
elasticSupportEnabled
- Specifies if Elastc Baboo shall be enabled or disabled.public boolean validateAgentCreation(int numAgentsRequired, ErrorCollection errorCollection)
ElasticFunctionalityFacade
validateAgentCreation
in interface ElasticFunctionalityFacade
numAgentsRequired
- - number of agents to be createderrorCollection
- - error collection to add any validation errors to.public void updateAgentPendingStatus(@NotNull java.lang.String instanceId)
ElasticFunctionalityFacade
updateAgentPendingStatus
in interface ElasticFunctionalityFacade
public void addElasticLogEntry(java.lang.String logEntry)
addElasticLogEntry
in interface ElasticFunctionalityFacade
public void addElasticLogEntry(org.apache.log4j.Logger log, java.lang.String logEntry)
addElasticLogEntry
in interface ElasticFunctionalityFacade
public void adjustElasticInstanceNumbers(@NotNull ElasticInstanceSchedule instanceSchedule) throws com.atlassian.aws.AWSException
ElasticFunctionalityFacade
ElasticInstanceSchedule
startup or bring down the correct number of agents
adjustElasticInstanceNumbers
in interface ElasticFunctionalityFacade
com.atlassian.aws.AWSException
protected void attemptShutdownInstances(java.util.Collection<RemoteElasticInstance> instances, int agentsToShutdown, ElasticImageConfiguration elasticImageConfiguration)
public int getMaxConcurrentInstances()
getMaxConcurrentInstances
in interface ElasticFunctionalityFacade
@NotNull public java.lang.String getPkFileLocation()
getPkFileLocation
in interface ElasticFunctionalityFacade
public java.lang.String getPassword(RemoteElasticInstance instance) throws com.atlassian.aws.AWSException
getPassword
in interface ElasticFunctionalityFacade
com.atlassian.aws.AWSException
public void setAgentManager(AgentManager agentManager)
public void setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)
public void setBambooLicenseManager(BambooLicenseManager bambooLicenseManager)
public void setElasticImageConfigurationAccessor(ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)
public void setRemoteAgentManager(RemoteAgentManager remoteAgentManager)
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
public void setStopBuildManager(StopBuildManager stopBuildManager)
public void setElasticAccountBean(ElasticAccountBean elasticAccountBean)
public void setAwsAccountBean(AwsAccountBean awsAccountBean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |