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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deletes all error messagesstatic BambooContainer
getBuildErrorDetails
(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 void
init()
void
Initialises the Bamboo give the application rootvoid
Plan oriented initialisation: enable/initialise plan cache initialise the builds/build strategies so that they are initialised when the server is startedvoid
void
Prepare for restart the container's componentsvoid
promoteToPrimary
(boolean isStartup) void
Register event listeners declared in the defaultListeners bean.void
removeBuildErrorFromLog
(String buildKey, int errorNumber) Remove the errorNumber'th error for the given buildName from the internal system error logvoid
reportBuildConfigurationProblems
(Persister persister, ErrorHandler errorHandler) void
Restart the configuration dependent componentsvoid
start
(@NotNull javax.servlet.ServletContext servletContext) Start the container's componentsvoid
stop()
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:
restartComponentsFollowingConfigurationChange
in interfaceBamboo
-
getErrorMessages
What error messages have we detected to far?- Specified by:
getErrorMessages
in interfaceBamboo
- Returns:
- The error messages
-
getErrorMessages
Description copied from interface:Bamboo
Obtain all of the system logged error messages- Specified by:
getErrorMessages
in interfaceBamboo
- Returns:
- the collection of ErrorMessages
-
getElasticErrorMessages
Description copied from interface:Bamboo
Obtain all of the logged error messages associated with elastic bamboo- Specified by:
getElasticErrorMessages
in interfaceBamboo
- Returns:
- the collection of ErrorDetails objects
-
getErrorMessagesByAgentId
Description copied from interface:Bamboo
Obtain the system logged error messages filtered by Agent Id- Specified by:
getErrorMessagesByAgentId
in interfaceBamboo
- Returns:
- the collection of ErrorMessages
-
clearErrorMessages
public void clearErrorMessages()Description copied from interface:Bamboo
deletes all error messages- Specified by:
clearErrorMessages
in interfaceBamboo
-
removeBuildErrorFromLog
Description copied from interface:Bamboo
Remove the errorNumber'th error for the given buildName from the internal system error log- Specified by:
removeBuildErrorFromLog
in 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:Bamboo
Obtain the errorNumber'th error for the given buildName from the internal system error log- Specified by:
getBuildErrorDetails
in 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:
getDefaultPersister
in interfaceBamboo
-
getSessionManager
Description copied from interface:Bamboo
Which session manager is the system using?- Specified by:
getSessionManager
in interfaceBamboo
- Returns:
- The session manager
-
getAdministrationConfiguration
- Specified by:
getAdministrationConfiguration
in interfaceBamboo
-
getBambooContainer
-