Package com.atlassian.bamboo.container
Class BambooContainer
java.lang.Object
com.atlassian.bamboo.container.BambooContainer
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeletes all error messagesstatic BambooContainergetBuildErrorDetails(String buildKey, int errorNumber) Obtain the errorNumber'th error for the given buildName from the internal system error logObtain all of the logged error messages associated with elastic bambooWhat error messages have we detected to far?getErrorMessages(@NotNull PlanKey planKey) Obtain all of the system logged error messagesgetErrorMessagesByAgentId(@NotNull Long agentId) Obtain the system logged error messages filtered by Agent IdWhich session manager is the system using?protected voidinit()voidInitialises the Bamboo give the application rootvoidPlan oriented initialisation: enable/initialise plan cache initialise the builds/build strategies so that they are initialised when the server is startedvoidvoidPrepare for restart the container's componentsvoidpromoteToPrimary(boolean isStartup) voidRegister event listeners declared in the defaultListeners bean.voidremoveBuildErrorFromLog(String buildKey, int errorNumber) Remove the errorNumber'th error for the given buildName from the internal system error logvoidreportBuildConfigurationProblems(Persister persister, ErrorHandler errorHandler) voidRestart the configuration dependent componentsvoidstart(@NotNull javax.servlet.ServletContext servletContext) Start the container's componentsvoidstop()Stop the container's components
-
Constructor Details
-
BambooContainer
public BambooContainer()
-
-
Method Details
-
initialise
Initialises the Bamboo give the application root- Throws:
Exception
-
init
protected void init() throws com.atlassian.plugin.PluginParseException- Throws:
com.atlassian.plugin.PluginParseException
-
promoteToPrimary
public void promoteToPrimary(boolean isStartup) -
start
Start the container's components -
initialisePlansAfterImport
Plan oriented initialisation:- enable/initialise plan cache
- initialise the builds/build strategies so that they are initialised when the server is started
- Throws:
IOException
-
registerCustomEventListeners
public void registerCustomEventListeners()Register event listeners declared in the defaultListeners bean. Their methods that handle events must be annotated with @EventListener. -
reportBuildConfigurationProblems
-
stop
public void stop()Stop the container's components -
prepareForHotSwapRestart
- Throws:
Exception
-
prepareForRestart
Prepare for restart the container's components- Throws:
Exception
-
restartComponentsFollowingConfigurationChange
public void restartComponentsFollowingConfigurationChange()Restart the configuration dependent components- Specified by:
restartComponentsFollowingConfigurationChangein interfaceBamboo
-
getErrorMessages
What error messages have we detected to far?- Specified by:
getErrorMessagesin interfaceBamboo- Returns:
- The error messages
-
getErrorMessages
Description copied from interface:BambooObtain all of the system logged error messages- Specified by:
getErrorMessagesin interfaceBamboo- Returns:
- the collection of ErrorMessages
-
getElasticErrorMessages
Description copied from interface:BambooObtain all of the logged error messages associated with elastic bamboo- Specified by:
getElasticErrorMessagesin interfaceBamboo- Returns:
- the collection of ErrorDetails objects
-
getErrorMessagesByAgentId
Description copied from interface:BambooObtain the system logged error messages filtered by Agent Id- Specified by:
getErrorMessagesByAgentIdin interfaceBamboo- Returns:
- the collection of ErrorMessages
-
clearErrorMessages
public void clearErrorMessages()Description copied from interface:Bamboodeletes all error messages- Specified by:
clearErrorMessagesin interfaceBamboo
-
removeBuildErrorFromLog
Description copied from interface:BambooRemove the errorNumber'th error for the given buildName from the internal system error log- Specified by:
removeBuildErrorFromLogin interfaceBamboo- Parameters:
buildKey- The name of the build with the associated errorerrorNumber- The error number (zero based index of error associated with build)
-
getBuildErrorDetails
Description copied from interface:BambooObtain the errorNumber'th error for the given buildName from the internal system error log- Specified by:
getBuildErrorDetailsin interfaceBamboo- Parameters:
buildKey- The name of the build with the associated errorerrorNumber- The error number (zero based index of error associated with build)
-
getDefaultPersister
- Specified by:
getDefaultPersisterin interfaceBamboo
-
getSessionManager
Description copied from interface:BambooWhich session manager is the system using?- Specified by:
getSessionManagerin interfaceBamboo- Returns:
- The session manager
-
getAdministrationConfiguration
- Specified by:
getAdministrationConfigurationin interfaceBamboo
-
getBambooContainer
-