Class BambooContainer

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

@Component public class BambooContainer extends 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
  • Constructor Details

    • BambooContainer

      public BambooContainer()
  • Method Details

    • initialise

      public void initialise() throws Exception
      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

      public void start(@NotNull @NotNull javax.servlet.ServletContext servletContext) throws Exception
      Start the container's components
      Specified by:
      start in interface Bamboo
      Throws:
      Exception
    • initialisePlansAfterImport

      public void initialisePlansAfterImport() throws IOException
      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

      public void reportBuildConfigurationProblems(Persister persister, ErrorHandler errorHandler)
    • stop

      public void stop()
      Stop the container's components
      Specified by:
      stop in interface Bamboo
    • prepareForHotSwapRestart

      public void prepareForHotSwapRestart() throws Exception
      Throws:
      Exception
    • prepareForRestart

      public void prepareForRestart() throws Exception
      Prepare for restart the container's components
      Throws:
      Exception
    • restartComponentsFollowingConfigurationChange

      public void restartComponentsFollowingConfigurationChange()
      Restart the configuration dependent components
      Specified by:
      restartComponentsFollowingConfigurationChange in interface Bamboo
    • getErrorMessages

      public Collection<ErrorDetails> getErrorMessages()
      What error messages have we detected to far?
      Specified by:
      getErrorMessages in interface Bamboo
      Returns:
      The error messages
    • getErrorMessages

      public Collection<ErrorDetails> getErrorMessages(@NotNull @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 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 Collection<ErrorDetails> getErrorMessagesByAgentId(@NotNull @NotNull 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(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(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()
      Specified by:
      getDefaultPersister in interface Bamboo
    • 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()