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()
           
 java.io.File getBuildDirectory()
          Where do we build builds?
 BuilderManager getBuilderManager()
           
 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 getErrorMessages()
          What error messages have we detected to far?
 java.util.Collection getErrorMessages(java.lang.String buildKey)
          Obtain all of the logged error messages associated with a build
 HeartBeatCheckerJobScheduler getHeartBeatCheckerJobScheduler()
           
 PlanManager getPlanManager()
           
 ScheduleBackupBean getScheduleBackupBean()
           
 org.quartz.Scheduler getScheduler()
           
 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()
          Initialise the builds/build strategies so that they are intialised 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
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 setBuilderManager(BuilderManager builderManager)
           
 void setBuildMonitorJobScheduler(BuildMonitorJobScheduler buildMonitorJobScheduler)
           
 void setBuildQueueMonitorJobScheduler(BuildQueueMonitorJobScheduler buildQueueMonitorJobScheduler)
           
 void setBuildSuspensionCheckBean(BuildSuspensionCheckBean buildSuspensionCheckBean)
           
 void setCapabilityDefaultsHelper(CapabilityDefaultsHelper capabilityDefaultsHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
           
 void setElasticImageConfigurationManager(ElasticImageConfigurationManager elasticImageConfigurationManager)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setEventManager(com.atlassian.event.EventManager eventManager)
           
 void setHeartBeatCheckerJobScheduler(HeartBeatCheckerJobScheduler heartBeatCheckerJobScheduler)
           
 void setInstantMessagingServerManager(InstantMessagingServerManager instantMessagingServerManager)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 void setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)
           
 void setPersister(Persister persister)
           
 void setPlanManager(PlanManager planManager)
           
 void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
           
 void setRemoteAgentManager(RemoteAgentManager remoteAgentManager)
           
 void setScheduleBackupBean(ScheduleBackupBean scheduleBackupBean)
           
 void setScheduler(org.quartz.Scheduler scheduler)
           
 void start()
          Start the container's compontents
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()
           throws java.lang.Exception
Start the container's compontents

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

startJobScheduler

protected void startJobScheduler()

initialisePlans

public void initialisePlans()
Initialise the builds/build strategies so that they are intialised when the server is started.


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

getBuildDirectory

public java.io.File getBuildDirectory()
Where do we build builds?

Specified by:
getBuildDirectory in interface Bamboo
Returns:
The system build directory

getErrorMessages

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

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

getErrorMessages

public java.util.Collection getErrorMessages(java.lang.String buildKey)
Description copied from interface: Bamboo
Obtain all of the logged error messages associated with a build

Specified by:
getErrorMessages in interface Bamboo
Parameters:
buildKey - the build to check errors for
Returns:
the collection of ErrorMessage objects

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)

setBuilderManager

public void setBuilderManager(BuilderManager builderManager)

getBuilderManager

public BuilderManager getBuilderManager()
Specified by:
getBuilderManager in interface Bamboo

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

setRemoteAgentManager

public void setRemoteAgentManager(RemoteAgentManager remoteAgentManager)

setPersister

public void setPersister(Persister persister)

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)

getPlanManager

public PlanManager getPlanManager()

setPlanManager

public void setPlanManager(PlanManager planManager)

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)

setEventManager

public void setEventManager(com.atlassian.event.EventManager eventManager)

setInstantMessagingServerManager

public void setInstantMessagingServerManager(InstantMessagingServerManager instantMessagingServerManager)

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)

setElasticImageConfigurationManager

public void setElasticImageConfigurationManager(ElasticImageConfigurationManager elasticImageConfigurationManager)

setElasticFunctionalityFacade

public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)

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)


Copyright © 2010 Atlassian. All Rights Reserved.