Class 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 Detail

      • BambooContainer

        public BambooContainer()
    • Method Detail

      • 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()
      • 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 Exception
        Prepare for restart the container's components
        Throws:
        Exception
      • 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)
      • 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