|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.container.BambooContainer
public class BambooContainer
This class uses an IoC container to glue together the various Bamboo build server components.
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.bamboo.Bamboo |
|---|
BAMBOO_KEY |
| Constructor Summary | |
|---|---|
BambooContainer()
|
|
| Method Summary | |
|---|---|
void |
addBuildListener(BuildEventListener listener)
Register the given build start listener with system build detector |
void |
clearErrorMessages()
deletes all error messages |
void |
deleteBuild(Build build)
Remove the given build from the system. |
void |
deleteBuildResults(Build build,
long buildNumber)
Remove the build's build results |
AdministrationConfiguration |
getAdministrationConfiguration()
|
Collection |
getAllBuildJdks()
Get all the available JDKs. |
static BambooContainer |
getBambooContainer()
|
BambooSmackClient |
getBambooSmackClient()
|
File |
getBuildDirectory()
Where do we build builds? |
Map |
getBuilderLabelPathMaps()
Returns a list of the registered build tools |
BuilderManager |
getBuilderManager()
|
ErrorDetails |
getBuildErrorDetails(String buildName,
int errorNumber)
Obtain the errorNumber'th error for the given buildName from the internal system error log |
BuildExpiryConfiguration |
getBuildExpiryConfiguration()
Obtain the system's build expiry configuration |
BuildManager |
getBuildManager()
|
List |
getBuildQueues()
Get the build queue |
BuildResults |
getBuildResults(Build build,
long buildNumber)
Obtain the specific build build results |
Build |
getBuildWithKey(String buildKey)
Obtain the build with the given buildKey. |
Persister |
getDefaultPersister()
Which persister is the system using? |
Collection |
getErrorMessages()
What error messages have we detected to far? |
Collection |
getErrorMessages(String buildName)
Obtain all of the logged error messages associated with a build |
Collection |
getRepositories()
Returns a list of all the registered source code repository tools |
Map |
getRepositoriesMap()
|
Repository |
getRepository(String repositoryName)
Returns a specified source code repository tool |
Scheduler |
getScheduler()
|
SessionManager |
getSessionManager()
Which session manager is the system using? |
ShutdownHook |
getShutdownHook()
|
VelocityEngine |
getVelocityEngine()
|
String |
getVersion()
What is the version of the application |
void |
initialise()
Initialises the Bamboo give the application root |
void |
initialiseBuilds(Persister persister)
Initialise the builds/build strategies so that they are intialised when the server is started. |
boolean |
isInitialised()
Has the system been initialised correctly |
void |
killBuild(Build build,
User user)
Remove the build from the build queue. |
void |
removeBuildErrorFromLog(String buildName,
int errorNumber)
Remove the errorNumber'th error for the given buildName from the internal system error log |
void |
removeBuildFromQueues(Build build)
|
void |
reportBuildConfigurationProblems(Persister persister,
ErrorHandler errorHandler)
|
void |
restartComponentsFollowingConfigurationChange()
Restart the configuration dependent components |
static void |
setBambooContainer(BambooContainer bambooContainer)
|
void |
setBambooSmackClient(BambooSmackClient bambooSmackClient)
|
void |
setBambooUserManager(BambooUserManager bambooUserManager)
|
void |
setBuilderManager(BuilderManager builderManager)
|
void |
setBuildEventNotifier(BuildEventNotifier buildEventNotifier)
|
void |
setBuildExpiryConfiguration(BuildExpiryConfiguration buildExpiryConfiguration)
Adjust the system's build expiry confguration |
void |
setBuildManager(BuildManager buildManager)
|
void |
setErrorHandler(ErrorHandler errorHandler)
|
void |
setPersister(Persister persister)
|
void |
setPipelineManager(PipelineManager pipelineManager)
|
void |
setPluginManager(PluginManager pluginManager)
|
void |
setScheduler(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 |
|---|
public BambooContainer()
throws Exception
Exception| Method Detail |
|---|
public void initialise()
throws Exception
Exceptionpublic void setPluginManager(PluginManager pluginManager)
public void start()
start in interface Bambooprotected void startJobScheduler()
public ShutdownHook getShutdownHook()
public void initialiseBuilds(Persister persister)
public void reportBuildConfigurationProblems(Persister persister,
ErrorHandler errorHandler)
public void stop()
stop in interface Bamboopublic void addBuildListener(BuildEventListener listener)
addBuildListener in interface Bamboolistener - The listenerpublic void restartComponentsFollowingConfigurationChange()
restartComponentsFollowingConfigurationChange in interface Bamboopublic Map getBuilderLabelPathMaps()
getBuilderLabelPathMaps in interface Bamboopublic Collection getRepositories()
getRepositories in interface Bamboopublic Map getRepositoriesMap()
public Repository getRepository(String repositoryName)
getRepository in interface BamboorepositoryName - The name of the tool
public Collection getAllBuildJdks()
Bamboo
getAllBuildJdks in interface Bamboopublic Build getBuildWithKey(String buildKey)
getBuildWithKey in interface BamboobuildKey - the build's unique key
public void killBuild(Build build,
User user)
Bamboo
killBuild in interface Bamboobuild - The build who's build we want to killpublic void removeBuildFromQueues(Build build)
removeBuildFromQueues in interface Bamboopublic List getBuildQueues()
getBuildQueues in interface Bamboopublic String getVersion()
getVersion in interface Bamboopublic File getBuildDirectory()
getBuildDirectory in interface Bamboo
public BuildResults getBuildResults(Build build,
long buildNumber)
getBuildResults in interface Bamboobuild - The build we are interested inbuildNumber - The build we are intrested in
public Collection getErrorMessages()
getErrorMessages in interface Bamboopublic Collection getErrorMessages(String buildName)
Bamboo
getErrorMessages in interface Bamboopublic void clearErrorMessages()
Bamboo
clearErrorMessages in interface Bamboo
public void removeBuildErrorFromLog(String buildName,
int errorNumber)
Bamboo
removeBuildErrorFromLog in interface BamboobuildName - The name of the build with the associated errorerrorNumber - The error number (zero based index of error associated with build)
public ErrorDetails getBuildErrorDetails(String buildName,
int errorNumber)
Bamboo
getBuildErrorDetails in interface BamboobuildName - The name of the build with the associated errorerrorNumber - The error number (zero based index of error associated with build)public boolean isInitialised()
isInitialised in interface Bamboopublic void deleteBuild(Build build)
deleteBuild in interface Bamboobuild - The build to delete
public void deleteBuildResults(Build build,
long buildNumber)
Bamboo
deleteBuildResults in interface Bamboobuild - The build who's build we are deletingbuildNumber - The number of the build to deletepublic Persister getDefaultPersister()
Bamboo
getDefaultPersister in interface Bamboopublic SessionManager getSessionManager()
Bamboo
getSessionManager in interface Bamboopublic BuildExpiryConfiguration getBuildExpiryConfiguration()
Bamboo
getBuildExpiryConfiguration in interface Bamboopublic void setBuildExpiryConfiguration(BuildExpiryConfiguration buildExpiryConfiguration)
Bamboo
setBuildExpiryConfiguration in interface Bamboopublic AdministrationConfiguration getAdministrationConfiguration()
getAdministrationConfiguration in interface Bamboopublic static BambooContainer getBambooContainer()
public static void setBambooContainer(BambooContainer bambooContainer)
public void setBuilderManager(BuilderManager builderManager)
public BuilderManager getBuilderManager()
getBuilderManager in interface Bamboopublic void setBuildEventNotifier(BuildEventNotifier buildEventNotifier)
public void setErrorHandler(ErrorHandler errorHandler)
public void setPipelineManager(PipelineManager pipelineManager)
public void setPersister(Persister persister)
public void setBambooUserManager(BambooUserManager bambooUserManager)
public BuildManager getBuildManager()
public void setBuildManager(BuildManager buildManager)
public Scheduler getScheduler()
public void setScheduler(Scheduler scheduler)
public VelocityEngine getVelocityEngine()
public BambooSmackClient getBambooSmackClient()
public void setBambooSmackClient(BambooSmackClient bambooSmackClient)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||