com.atlassian.bamboo.container
Class BambooContainer

java.lang.Object
  extended by com.atlassian.bamboo.container.BambooContainer
All Implemented Interfaces:
Bamboo

public class BambooContainer
extends java.lang.Object
implements Bamboo

This class uses an IoC container to glue together the various Bamboo build server components. This class is effectively deprecated... Try not to add to it if avoidable


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.Bamboo
BAMBOO_KEY
 
Constructor Summary
BambooContainer()
           
 
Method Summary
 void clearErrorMessages()
          deletes all error messages
 AdministrationConfiguration getAdministrationConfiguration()
           
static BambooContainer getBambooContainer()
           
 BambooSmackClient getBambooSmackClient()
          Deprecated. since 5.5 just inject this bean properly
 ErrorDetails getBuildErrorDetails(java.lang.String buildKey, int errorNumber)
          Obtain the errorNumber'th error for the given buildName from the internal system error log
 BuildQueueMonitorJobScheduler getBuildQueueMonitorJobScheduler()
          Deprecated. since 5.5 just inject this bean properly
 Persister getDefaultPersister()
          Which persister is the system using?
 java.util.Collection<ErrorDetails> getElasticErrorMessages()
          Obtain all of the logged error messages associated with elastic bamboo
 java.util.Collection<ErrorDetails> getErrorMessages()
          What error messages have we detected to far?
 java.util.Collection<ErrorDetails> getErrorMessages(PlanKey planKey)
          Obtain all of the system logged error messages
 java.util.Collection<ErrorDetails> getErrorMessagesByAgentId(java.lang.Long agentId)
          Obtain the system logged error messages filtered by Agent Id
 HeartBeatCheckerJobScheduler getHeartBeatCheckerJobScheduler()
          Deprecated. since 5.5 just inject this bean properly
 ScheduleBackupBean getScheduleBackupBean()
          Deprecated. since 5.5 just inject this bean properly
 org.quartz.Scheduler getScheduler()
          Deprecated. since 5.5 just inject this bean properly
 com.atlassian.plugin.servlet.ServletModuleManager getServletModuleManager()
          Deprecated. since 5.5 just inject this bean properly
 SessionManager getSessionManager()
          Which session manager is the system using?
 org.apache.velocity.app.VelocityEngine getVelocityEngine()
          Deprecated. since 5.5 just inject this bean properly
protected  void init()
           
 void initialise()
          Initialises the Bamboo give the application root
 void initialisePlans()
          Plan oriented initialisation: enable/initialise plan cache initialise the builds/build strategies so that they are initialised when the server is started
 void prepareForRestart()
          Prepare for restart the container's components
 void registerCustomEventListeners()
           
 void removeBuildErrorFromLog(java.lang.String buildKey, int errorNumber)
          Remove the errorNumber'th error for the given buildName from the internal system error log
 void reportBuildConfigurationProblems(Persister persister, ErrorHandler errorHandler)
           
 void restartComponentsFollowingConfigurationChange()
          Restart the configuration dependent components
 void setAgentManager(AgentManager agentManager)
           
static void setBambooContainer(BambooContainer bambooContainer)
           
 void setBambooSchedulers(java.util.List<BambooScheduler> bambooSchedulers)
           
 void setBambooSmackClient(BambooSmackClient bambooSmackClient)
           
 void setBambooTriggers(java.util.List<org.springframework.scheduling.quartz.SimpleTriggerBean> bambooTriggers)
           
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setBranchDetectionJobScheduler(BranchDetectionJobScheduler branchDetectionJobScheduler)
           
 void setBuildMonitorJobScheduler(BuildMonitorJobScheduler buildMonitorJobScheduler)
           
 void setBuildQueueMonitorJobScheduler(BuildQueueMonitorJobScheduler buildQueueMonitorJobScheduler)
           
 void setBuildSuspensionCheckBean(BuildSuspensionCheckBean buildSuspensionCheckBean)
           
 void setCachedPlanManager(CachedPlanManager cachedPlanManager)
           
 void setCapabilityDefaultsHelper(CapabilityDefaultsHelper capabilityDefaultsHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setElasticImageConfigurationManager(ElasticImageConfigurationManager elasticImageConfigurationManager)
           
 void setEnvironmentService(EnvironmentService environmentService)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
           
 void setHeartBeatCheckerJobScheduler(HeartBeatCheckerJobScheduler heartBeatCheckerJobScheduler)
           
 void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)
           
 void setLinkedDeploymentProjectCacheService(LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService)
           
 void setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)
           
 void setPendingDeploymentResultsCleanup(PendingDeploymentResultsCleanup pendingDeploymentResultsCleanup)
           
 void setPersister(Persister persister)
           
 void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
           
 void setRemoteAgentManager(RemoteAgentManager remoteAgentManager)
           
 void setScheduleBackupBean(ScheduleBackupBean scheduleBackupBean)
           
 void setScheduler(org.quartz.Scheduler scheduler)
           
 void setServerLifecycleManager(ServerLifecycleManager serverLifecycleManager)
           
 void setServletModuleManager(com.atlassian.plugin.servlet.ServletModuleManager servletModuleManager)
           
 void start(javax.servlet.ServletContext servletContext)
          Start the container's components
protected  void startJobScheduler()
           
 void stop()
          Stop the container's components
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooContainer

public BambooContainer()
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

initialise

public void initialise()
                throws java.lang.Exception
Initialises the Bamboo give the application root

Throws:
java.lang.Exception

init

protected void init()
             throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException

setPluginManager

public void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)

start

public void start(@NotNull
                  javax.servlet.ServletContext servletContext)
           throws java.lang.Exception
Start the container's components

Specified by:
start in interface Bamboo
Throws:
java.lang.Exception

startJobScheduler

protected void startJobScheduler()

initialisePlans

public void initialisePlans()
Plan oriented initialisation:


registerCustomEventListeners

public void registerCustomEventListeners()

reportBuildConfigurationProblems

public void reportBuildConfigurationProblems(Persister persister,
                                             ErrorHandler errorHandler)

stop

public void stop()
Stop the container's components

Specified by:
stop in interface Bamboo

prepareForRestart

public void prepareForRestart()
                       throws java.lang.Exception
Prepare for restart the container's components

Throws:
java.lang.Exception

restartComponentsFollowingConfigurationChange

public void restartComponentsFollowingConfigurationChange()
Restart the configuration dependent components

Specified by:
restartComponentsFollowingConfigurationChange in interface Bamboo

getErrorMessages

public java.util.Collection<ErrorDetails> getErrorMessages()
What error messages have we detected to far?

Specified by:
getErrorMessages in interface Bamboo
Returns:
The error messages

getErrorMessages

public java.util.Collection<ErrorDetails> getErrorMessages(@NotNull
                                                           PlanKey planKey)
Description copied from interface: Bamboo
Obtain all of the system logged error messages

Specified by:
getErrorMessages in interface Bamboo
Returns:
the collection of ErrorMessages

getElasticErrorMessages

public java.util.Collection<ErrorDetails> getElasticErrorMessages()
Description copied from interface: Bamboo
Obtain all of the logged error messages associated with elastic bamboo

Specified by:
getElasticErrorMessages in interface Bamboo
Returns:
the collection of ErrorDetails objects

getErrorMessagesByAgentId

public java.util.Collection<ErrorDetails> getErrorMessagesByAgentId(@NotNull
                                                                    java.lang.Long agentId)
Description copied from interface: Bamboo
Obtain the system logged error messages filtered by Agent Id

Specified by:
getErrorMessagesByAgentId in interface Bamboo
Returns:
the collection of ErrorMessages

clearErrorMessages

public void clearErrorMessages()
Description copied from interface: Bamboo
deletes all error messages

Specified by:
clearErrorMessages in interface Bamboo

removeBuildErrorFromLog

public void removeBuildErrorFromLog(java.lang.String buildKey,
                                    int errorNumber)
Description copied from interface: Bamboo
Remove the errorNumber'th error for the given buildName from the internal system error log

Specified by:
removeBuildErrorFromLog in interface Bamboo
Parameters:
buildKey - The name of the build with the associated error
errorNumber - The error number (zero based index of error associated with build)

getBuildErrorDetails

public ErrorDetails getBuildErrorDetails(java.lang.String buildKey,
                                         int errorNumber)
Description copied from interface: Bamboo
Obtain the errorNumber'th error for the given buildName from the internal system error log

Specified by:
getBuildErrorDetails in interface Bamboo
Parameters:
buildKey - The name of the build with the associated error
errorNumber - The error number (zero based index of error associated with build)

getDefaultPersister

public Persister getDefaultPersister()
Description copied from interface: Bamboo
Which persister is the system using?

Specified by:
getDefaultPersister in interface Bamboo
Returns:
The persister

getSessionManager

public SessionManager getSessionManager()
Description copied from interface: Bamboo
Which session manager is the system using?

Specified by:
getSessionManager in interface Bamboo
Returns:
The session manager

getAdministrationConfiguration

public AdministrationConfiguration getAdministrationConfiguration()
Specified by:
getAdministrationConfiguration in interface Bamboo

getBambooContainer

public static BambooContainer getBambooContainer()

setBambooContainer

public static void setBambooContainer(BambooContainer bambooContainer)

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)

setAgentManager

public void setAgentManager(AgentManager agentManager)

setRemoteAgentManager

public void setRemoteAgentManager(RemoteAgentManager remoteAgentManager)

setServerLifecycleManager

public void setServerLifecycleManager(ServerLifecycleManager serverLifecycleManager)

setPersister

public void setPersister(Persister persister)

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)

setImmutablePlanCacheService

public void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)

setCachedPlanManager

public void setCachedPlanManager(CachedPlanManager cachedPlanManager)

getScheduler

@Deprecated
public org.quartz.Scheduler getScheduler()
Deprecated. since 5.5 just inject this bean properly


setScheduler

public void setScheduler(org.quartz.Scheduler scheduler)

getVelocityEngine

@Deprecated
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
Deprecated. since 5.5 just inject this bean properly


getBambooSmackClient

@Deprecated
public BambooSmackClient getBambooSmackClient()
Deprecated. since 5.5 just inject this bean properly


setBambooSmackClient

public void setBambooSmackClient(BambooSmackClient bambooSmackClient)

setEventPublisher

public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

getScheduleBackupBean

@Deprecated
public ScheduleBackupBean getScheduleBackupBean()
Deprecated. since 5.5 just inject this bean properly


setScheduleBackupBean

public void setScheduleBackupBean(ScheduleBackupBean scheduleBackupBean)

getHeartBeatCheckerJobScheduler

@Deprecated
public HeartBeatCheckerJobScheduler getHeartBeatCheckerJobScheduler()
Deprecated. since 5.5 just inject this bean properly


setHeartBeatCheckerJobScheduler

public void setHeartBeatCheckerJobScheduler(HeartBeatCheckerJobScheduler heartBeatCheckerJobScheduler)

getBuildQueueMonitorJobScheduler

@Deprecated
public BuildQueueMonitorJobScheduler getBuildQueueMonitorJobScheduler()
Deprecated. since 5.5 just inject this bean properly


setBuildQueueMonitorJobScheduler

public void setBuildQueueMonitorJobScheduler(BuildQueueMonitorJobScheduler buildQueueMonitorJobScheduler)

setBuildMonitorJobScheduler

public void setBuildMonitorJobScheduler(BuildMonitorJobScheduler buildMonitorJobScheduler)

setBranchDetectionJobScheduler

public void setBranchDetectionJobScheduler(BranchDetectionJobScheduler branchDetectionJobScheduler)

setElasticImageConfigurationManager

public void setElasticImageConfigurationManager(ElasticImageConfigurationManager elasticImageConfigurationManager)

setBambooSchedulers

public void setBambooSchedulers(java.util.List<BambooScheduler> bambooSchedulers)

setBambooTriggers

public void setBambooTriggers(java.util.List<org.springframework.scheduling.quartz.SimpleTriggerBean> bambooTriggers)

setBuildSuspensionCheckBean

public void setBuildSuspensionCheckBean(BuildSuspensionCheckBean buildSuspensionCheckBean)

setCapabilitySetManager

public void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)

setCapabilityDefaultsHelper

public void setCapabilityDefaultsHelper(CapabilityDefaultsHelper capabilityDefaultsHelper)

setPendingBuildResultsCleanup

public void setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)

setPendingDeploymentResultsCleanup

public void setPendingDeploymentResultsCleanup(PendingDeploymentResultsCleanup pendingDeploymentResultsCleanup)

getServletModuleManager

@Deprecated
public com.atlassian.plugin.servlet.ServletModuleManager getServletModuleManager()
Deprecated. since 5.5 just inject this bean properly


setServletModuleManager

public void setServletModuleManager(com.atlassian.plugin.servlet.ServletModuleManager servletModuleManager)

setEnvironmentService

public void setEnvironmentService(EnvironmentService environmentService)

setLinkedDeploymentProjectCacheService

public void setLinkedDeploymentProjectCacheService(LinkedDeploymentProjectCacheService linkedDeploymentProjectCacheService)


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