|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.events.DefaultBuildEventListener
public class DefaultBuildEventListener
This class provides a default implementation of the BuildEventListener interface.
| Field Summary | |
|---|---|
protected BuildManager |
buildManager
|
| Fields inherited from interface com.atlassian.bamboo.event.BuildEventListener |
|---|
DISABLE_NOTIFICATION_SYSTEM_PROPERTY |
| Constructor Summary | |
|---|---|
DefaultBuildEventListener()
|
|
| Method Summary | |
|---|---|
BuildManager |
getBuildManager()
|
protected BuildState |
getPreviousBuildState(BuildResults buildResults,
Build build)
|
protected String |
getServerBaseUrl()
Various Event Listeners need to know the server's base url. |
void |
onBuildComplete(Build build,
BuildResults buildResults)
Be notified when a build build has completed. |
void |
onBuildStart(Build build,
long buildNumber)
Be notified when a build build has started The default behaviour is to do nothing |
void |
onDeletedBuild(Build build)
Be notified when a build has been removed from Bamboo |
void |
onDeletedBuildResult(Build build,
long buildNumber)
Be notified when a build has been removed from Bamboo |
void |
onNewBuild(Build build)
Be notified when a new build is added to Bamboo. |
void |
setBuildManager(BuildManager buildManager)
|
protected boolean |
systemHasBeenConfigured()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BuildManager buildManager
| Constructor Detail |
|---|
public DefaultBuildEventListener()
| Method Detail |
|---|
public void onNewBuild(Build build)
onNewBuild in interface BuildEventListenerbuild - The new build.
public void onDeletedBuild(Build build)
throws Exception
onDeletedBuild in interface BuildEventListenerbuild - The build about to get zapped
Exception - A generic failure
public void onDeletedBuildResult(Build build,
long buildNumber)
onDeletedBuildResult in interface BuildEventListenerbuild - The build who's build is about to be zappedbuildNumber - The build number
public void onBuildStart(Build build,
long buildNumber)
throws Exception
onBuildStart in interface BuildEventListenerbuild - The build being builtbuildNumber - The build number
Exception - A generic failure
public void onBuildComplete(Build build,
BuildResults buildResults)
throws Exception
onBuildComplete in interface BuildEventListenerbuild - The buildbuildResults - The output from the build
Exception - A generic failureprotected String getServerBaseUrl()
protected boolean systemHasBeenConfigured()
protected BuildState getPreviousBuildState(BuildResults buildResults,
Build build)
public BuildManager getBuildManager()
public void setBuildManager(BuildManager buildManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||