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()
           
 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()
           
 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
 HeartBeatCheckerJobScheduler getHeartBeatCheckerJobScheduler()
           
 ScheduleBackupBean getScheduleBackupBean()
           
 org.quartz.Scheduler getScheduler()
           
 com.atlassian.plugin.servlet.ServletModuleManager getServletModuleManager()
           
 SessionManager getSessionManager()
          Which session manager is the system using?
 org.apache.velocity.app.VelocityEngine getVelocityEngine()
           
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 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 setErrorHandler(ErrorHandler errorHandler)
           
 void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
           
 void setHeartBeatCheckerJobScheduler(HeartBeatCheckerJobScheduler heartBeatCheckerJobScheduler)
           
 void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)
           
 void setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)
           
 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

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

public org.quartz.Scheduler getScheduler()

setScheduler

public void setScheduler(org.quartz.Scheduler scheduler)

getVelocityEngine

public org.apache.velocity.app.VelocityEngine getVelocityEngine()

getBambooSmackClient

public BambooSmackClient getBambooSmackClient()

setBambooSmackClient

public void setBambooSmackClient(BambooSmackClient bambooSmackClient)

setEventPublisher

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

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

getScheduleBackupBean

public ScheduleBackupBean getScheduleBackupBean()

setScheduleBackupBean

public void setScheduleBackupBean(ScheduleBackupBean scheduleBackupBean)

getHeartBeatCheckerJobScheduler

public HeartBeatCheckerJobScheduler getHeartBeatCheckerJobScheduler()

setHeartBeatCheckerJobScheduler

public void setHeartBeatCheckerJobScheduler(HeartBeatCheckerJobScheduler heartBeatCheckerJobScheduler)

getBuildQueueMonitorJobScheduler

public BuildQueueMonitorJobScheduler getBuildQueueMonitorJobScheduler()

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)

setBuildSuspensionCheckBean

public void setBuildSuspensionCheckBean(BuildSuspensionCheckBean buildSuspensionCheckBean)

setCapabilitySetManager

public void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)

setCapabilityDefaultsHelper

public void setCapabilityDefaultsHelper(CapabilityDefaultsHelper capabilityDefaultsHelper)

setPendingBuildResultsCleanup

public void setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)

getServletModuleManager

public com.atlassian.plugin.servlet.ServletModuleManager getServletModuleManager()

setServletModuleManager

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


Copyright © 2012 Atlassian. All Rights Reserved.