|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.event.DefaultBuildEventNotifier
public class DefaultBuildEventNotifier
This class keep a registery of BuildEventListeners and notifies them when a build event occurs.
| Constructor Summary | |
|---|---|
DefaultBuildEventNotifier()
|
|
| Method Summary | |
|---|---|
void |
addBuildEventListener(BuildEventListener listener)
Register an interest build events |
protected int |
getTimeoutDurationInMillis()
Defaults to FIVE_MINUTES, but can be overridden by tests that don't want to wait that long |
void |
notifyListenersOfBuildComplete(Build build,
BuildResults buildResults)
Notify the registered BuildEventListeners that a build build has completed. |
void |
notifyListenersOfBuildResultsRemoval(Build build,
long buildNumber)
Notify the registered BuildEventListeners that a build build has completed. |
void |
notifyListenersOfBuildStart(Build build,
long buildNumber)
Notify the registered BuildEventListeners that a build has started to be built. |
void |
notifyListenersOfDeletedBuild(Build build)
Notify the registered BuildEventListeners that an existing build has been deleted. |
void |
notifyListenersOfNewBuild(Build build)
Notify the registered BuildEventListeners that a new build has been added. |
void |
restart()
We need to restart the build Builder! |
void |
setErrorHandler(ErrorHandler errorHandler)
|
void |
start()
Starts up the all the registered Build Listeners that implement Startable |
void |
stop()
Stops the all the registered Build Listeners that implement Startable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBuildEventNotifier()
| Method Detail |
|---|
public void addBuildEventListener(BuildEventListener listener)
addBuildEventListener in interface BuildEventNotifierlistener - The listener interested in build events
public void start()
throws Exception
Startable
start in interface StartableException - A generic exception
public void stop()
throws Exception
Startable
stop in interface StartableException - A generic exception
public void restart()
throws Exception
restart in interface BuildEventNotifierException
public void notifyListenersOfBuildStart(Build build,
long buildNumber)
throws Exception
BuildEventNotifierBuildEventListeners that a build has started to be built.
notifyListenersOfBuildStart in interface BuildEventNotifierbuild - The build being builtbuildNumber - The number of the new build.
Exception
public void notifyListenersOfBuildComplete(Build build,
BuildResults buildResults)
throws Exception
BuildEventNotifierBuildEventListeners that a build build has completed.
notifyListenersOfBuildComplete in interface BuildEventNotifierbuild - The build being builtbuildResults - The results of the build
Exception
public void notifyListenersOfBuildResultsRemoval(Build build,
long buildNumber)
BuildEventNotifierBuildEventListeners that a build build has completed.
notifyListenersOfBuildResultsRemoval in interface BuildEventNotifierbuild - The build being builtbuildNumber - The number of the build to deleteprotected int getTimeoutDurationInMillis()
public void notifyListenersOfNewBuild(Build build)
BuildEventNotifierBuildEventListeners that a new build has been added.
notifyListenersOfNewBuild in interface BuildEventNotifierbuild - The new build
public void notifyListenersOfDeletedBuild(Build build)
throws Exception
BuildEventNotifierBuildEventListeners that an existing build has been deleted.
notifyListenersOfDeletedBuild in interface BuildEventNotifierbuild - The build that's about to get zapped
Exceptionpublic void setErrorHandler(ErrorHandler errorHandler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||