|
||||||||||
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 BuildEventListener
s 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 BuildEventListener s that a build build has completed. |
void |
notifyListenersOfBuildResultsRemoval(Build build,
long buildNumber)
Notify the registered BuildEventListener s that a build build has completed. |
void |
notifyListenersOfBuildStart(Build build,
long buildNumber)
Notify the registered BuildEventListener s that a build has started to be built. |
void |
notifyListenersOfDeletedBuild(Build build)
Notify the registered BuildEventListener s that an existing build has been deleted. |
void |
notifyListenersOfNewBuild(Build build)
Notify the registered BuildEventListener s 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 BuildEventNotifier
listener
- The listener interested in build eventspublic void start() throws Exception
Startable
start
in interface Startable
Exception
- A generic exceptionpublic void stop() throws Exception
Startable
stop
in interface Startable
Exception
- A generic exceptionpublic void restart() throws Exception
restart
in interface BuildEventNotifier
Exception
public void notifyListenersOfBuildStart(Build build, long buildNumber) throws Exception
BuildEventNotifier
BuildEventListener
s that a build has started to be built.
notifyListenersOfBuildStart
in interface BuildEventNotifier
build
- The build being builtbuildNumber
- The number of the new build.
Exception
public void notifyListenersOfBuildComplete(Build build, BuildResults buildResults) throws Exception
BuildEventNotifier
BuildEventListener
s that a build build has completed.
notifyListenersOfBuildComplete
in interface BuildEventNotifier
build
- The build being builtbuildResults
- The results of the build
Exception
public void notifyListenersOfBuildResultsRemoval(Build build, long buildNumber)
BuildEventNotifier
BuildEventListener
s that a build build has completed.
notifyListenersOfBuildResultsRemoval
in interface BuildEventNotifier
build
- The build being builtbuildNumber
- The number of the build to deleteprotected int getTimeoutDurationInMillis()
public void notifyListenersOfNewBuild(Build build)
BuildEventNotifier
BuildEventListener
s that a new build has been added.
notifyListenersOfNewBuild
in interface BuildEventNotifier
build
- The new buildpublic void notifyListenersOfDeletedBuild(Build build) throws Exception
BuildEventNotifier
BuildEventListener
s that an existing build has been deleted.
notifyListenersOfDeletedBuild
in interface BuildEventNotifier
build
- The build that's about to get zapped
Exception
public void setErrorHandler(ErrorHandler errorHandler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |