Class NotificationEventAccumulator
- java.lang.Object
-
- jetbrains.buildServer.notification.NotificationEventAccumulator
-
- All Implemented Interfaces:
NotificationEventListener
public class NotificationEventAccumulator extends Object implements NotificationEventListener
- Author:
- Maxim.Manuylov Date: 07.04.11
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNotificationEventAccumulator.Accumulator<Key extends NotificationEventAccumulator.EventKey,Value extends NotificationEventAccumulator.EventValue<Value>>static interfaceNotificationEventAccumulator.EventKeystatic classNotificationEventAccumulator.EventValue<V extends NotificationEventAccumulator.EventValue>
-
Constructor Summary
Constructors Constructor Description NotificationEventAccumulator(EventDispatcher<BuildServerListener> server, NotificationEventListener delegate, TestName2Index testName2Index, ScheduledExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildFailed(SRunningBuild build)Called when build finished with a failure.voidbuildFailedAfterSuccess(SRunningBuild build)Called upon first build failure after successvoidbuildFailedToStart(SRunningBuild build)Called if build failed to start, i.e.voidbuildFailing(SRunningBuild build, BuildMessage1 message)Called when build status changed to failure.voidbuildProbablyHanged(SRunningBuild build)Called when server detected probable hanging of a buildvoidbuildProblemsMuted(MuteInfo muteInfo)Called when a set of build problems are muted (with same mute properties).voidbuildProblemsUnmuted(MuteInfo muteInfoBeforeUnmute, Collection<BuildProblemInfo> problems, SUser user)Called when a set of build problems are unmuted (with same mute properties).voidbuildStarted(SRunningBuild build)Called when build started and changes loaded.voidbuildSuccessful(SRunningBuild build)Called when build finished successfully.voidbuildSuccessfulAfterFailure(SRunningBuild build)Called upon first successful build after a number of failed builds.voidlabelingFailed(SBuild build, VcsRoot root, Throwable exception)Labeling process failed for the specified build and root with the specified problem.voidqueuedBuildRequiresApproval(SQueuedBuild queuedBuild)Called when a build that requires approval is queued.voidresponsibleChanged(SBuildType buildType, ResponsibilityEntry oldValue, ResponsibilityEntry newValue, boolean isUserAction)Called when responsibility changes.voidresponsibleChanged(SProject project, Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry)Called when responsibility for several build problems at once is changed.voidresponsibleChanged(SProject project, Collection<TestName> testNames, ResponsibilityEntry entry, boolean isUserAction)Called when responsibility for several tests changed.voidresponsibleChanged(SProject project, TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, boolean isUserAction)Called when test responsibility is changed.voidtestsMuted(MuteInfo muteInfo)Called when a set of tests are muted (with same mute properties).voidtestsUnmuted(MuteInfo muteInfoBeforeUnmute, Collection<STest> tests, SUser user)Called when a set of tests are unmuted (with same mute properties).
-
-
-
Constructor Detail
-
NotificationEventAccumulator
public NotificationEventAccumulator(@NotNull EventDispatcher<BuildServerListener> server, @NotNull NotificationEventListener delegate, @NotNull TestName2Index testName2Index, @NotNull ScheduledExecutorService executor)
-
-
Method Detail
-
buildStarted
public void buildStarted(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled when build started and changes loaded.- Specified by:
buildStartedin interfaceNotificationEventListener- Parameters:
build- started build.
-
buildSuccessful
public void buildSuccessful(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled when build finished successfully.- Specified by:
buildSuccessfulin interfaceNotificationEventListener- Parameters:
build- finished build.
-
buildSuccessfulAfterFailure
public void buildSuccessfulAfterFailure(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled upon first successful build after a number of failed builds.- Specified by:
buildSuccessfulAfterFailurein interfaceNotificationEventListener- Parameters:
build- finished build.
-
buildFailed
public void buildFailed(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled when build finished with a failure.- Specified by:
buildFailedin interfaceNotificationEventListener- Parameters:
build- failed build.
-
buildFailedToStart
public void buildFailedToStart(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled if build failed to start, i.e. some internal error occurred and build process did not start actually.- Specified by:
buildFailedToStartin interfaceNotificationEventListener- Parameters:
build- failed build
-
buildFailedAfterSuccess
public void buildFailedAfterSuccess(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled upon first build failure after success- Specified by:
buildFailedAfterSuccessin interfaceNotificationEventListener- Parameters:
build- failed build
-
buildProbablyHanged
public void buildProbablyHanged(@NotNull SRunningBuild build)Description copied from interface:NotificationEventListenerCalled when server detected probable hanging of a build- Specified by:
buildProbablyHangedin interfaceNotificationEventListener- Parameters:
build- hung build.
-
buildFailing
public void buildFailing(@NotNull SRunningBuild build, @Nullable BuildMessage1 message)Description copied from interface:NotificationEventListenerCalled when build status changed to failure. This event will be sent only once.- Specified by:
buildFailingin interfaceNotificationEventListener- Parameters:
build- failing build.message- is always null since 7.1
-
queuedBuildRequiresApproval
public void queuedBuildRequiresApproval(@NotNull SQueuedBuild queuedBuild)Description copied from interface:NotificationEventListenerCalled when a build that requires approval is queued. This event will be sent only once.- Specified by:
queuedBuildRequiresApprovalin interfaceNotificationEventListener- Parameters:
queuedBuild- queued build.
-
responsibleChanged
public void responsibleChanged(@NotNull SBuildType buildType, @NotNull ResponsibilityEntry oldValue, @NotNull ResponsibilityEntry newValue, boolean isUserAction)Description copied from interface:NotificationEventListenerCalled when responsibility changes.- Specified by:
responsibleChangedin interfaceNotificationEventListener- Parameters:
buildType- configuration with changed responsibility.oldValue- old responsibility.newValue- new responsibility.isUserAction- if the action was made by user.
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @Nullable TestNameResponsibilityEntry oldValue, @NotNull TestNameResponsibilityEntry newValue, boolean isUserAction)Description copied from interface:NotificationEventListenerCalled when test responsibility is changed.- Specified by:
responsibleChangedin interfaceNotificationEventListener- Parameters:
project- the project in which test responsibility has changedoldValue- old responsibility entrynewValue- new responsibility entryisUserAction- true if responsibility status was changed manually via Web UI
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, boolean isUserAction)Description copied from interface:NotificationEventListenerCalled when responsibility for several tests changed.- Specified by:
responsibleChangedin interfaceNotificationEventListener- Parameters:
project- the projecttestNames- collection of test namesentry- new responsibility entry for each testisUserAction- true if responsibility status was changed manually via Web UI
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<BuildProblemInfo> buildProblems, @Nullable ResponsibilityEntry entry)Description copied from interface:NotificationEventListenerCalled when responsibility for several build problems at once is changed.- Specified by:
responsibleChangedin interfaceNotificationEventListener- Parameters:
project- the projectbuildProblems- build problemsentry- the new responsibility entry
-
labelingFailed
public void labelingFailed(SBuild build, VcsRoot root, Throwable exception)
Description copied from interface:NotificationEventListenerLabeling process failed for the specified build and root with the specified problem.- Specified by:
labelingFailedin interfaceNotificationEventListener- Parameters:
build- build for which labeling failed.root- root for which labeling failed.exception- labeling cause.
-
testsMuted
public void testsMuted(@NotNull MuteInfo muteInfo)Description copied from interface:NotificationEventListenerCalled when a set of tests are muted (with same mute properties). All tests are in the same project.- Specified by:
testsMutedin interfaceNotificationEventListener- Parameters:
muteInfo- mute info
-
testsUnmuted
public void testsUnmuted(@NotNull MuteInfo muteInfoBeforeUnmute, @NotNull Collection<STest> tests, @Nullable SUser user)Description copied from interface:NotificationEventListenerCalled when a set of tests are unmuted (with same mute properties). All tests are in the same project.- Specified by:
testsUnmutedin interfaceNotificationEventListener- Parameters:
muteInfoBeforeUnmute- the mute info on the moment of unmutetests- the unmuted testsuser- who performed the action (if known)
-
buildProblemsMuted
public void buildProblemsMuted(@NotNull MuteInfo muteInfo)Description copied from interface:NotificationEventListenerCalled when a set of build problems are muted (with same mute properties). All problems belong the same project.- Specified by:
buildProblemsMutedin interfaceNotificationEventListener- Parameters:
muteInfo- mute info
-
buildProblemsUnmuted
public void buildProblemsUnmuted(@NotNull MuteInfo muteInfoBeforeUnmute, @NotNull Collection<BuildProblemInfo> problems, @Nullable SUser user)Description copied from interface:NotificationEventListenerCalled when a set of build problems are unmuted (with same mute properties). All problems belong the same project.- Specified by:
buildProblemsUnmutedin interfaceNotificationEventListener- Parameters:
muteInfoBeforeUnmute- the mute info on the moment of unmuteproblems- the unmuted problemsuser- who performed the action (if known)
-
-