Class NotificatorAdapter
- java.lang.Object
-
- jetbrains.buildServer.notification.NotificatorAdapter
-
- All Implemented Interfaces:
Notificator
- Direct Known Subclasses:
MockNotificator
public abstract class NotificatorAdapter extends Object implements Notificator
SimpleNotificatorimplementation. Does nothing.
-
-
Constructor Summary
Constructors Constructor Description NotificatorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Notificator display name.voidnotifyBuildFailed(SRunningBuild build, Set<SUser> users)Called when build failed.voidnotifyBuildFailedToStart(SRunningBuild build, Set<SUser> users)Called when build failed with internal error, i.e.voidnotifyBuildFailing(SRunningBuild build, Set<SUser> users)Called when the first failed message occurred.voidnotifyBuildProbablyHanging(SRunningBuild build, Set<SUser> users)Called when build is not sending messages to server for some time.voidnotifyBuildProblemResponsibleAssigned(Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry, SProject project, Set<SUser> users)Called when responsibility for several build problems is assigned.voidnotifyBuildProblemResponsibleChanged(Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry, SProject project, Set<SUser> users)Called when responsibility for several build problems is changed.voidnotifyBuildProblemsMuted(Collection<BuildProblemInfo> buildProblems, MuteInfo muteInfo, Set<SUser> users)Called when a set of build problems are muted (with same mute properties).voidnotifyBuildProblemsUnmuted(Collection<BuildProblemInfo> buildProblems, MuteInfo muteInfo, SUser user, Set<SUser> users)Called when a set of build problems are unmuted (with same mute properties).voidnotifyBuildStarted(SRunningBuild build, Set<SUser> users)Called when new build started.voidnotifyBuildSuccessful(SRunningBuild build, Set<SUser> users)Called when build finished successfully.voidnotifyLabelingFailed(Build build, VcsRoot root, Throwable exception, Set<SUser> users)Called when labeling failed for the build.voidnotifyQueuedBuildWaitingForApproval(SQueuedBuild queuedBuild, Set<SUser> users)Called when a build that requires approval from the user is added into the build queue.voidnotifyResponsibleAssigned(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, Set<SUser> users)Called when responsibility for several tests at once is assigned.voidnotifyResponsibleAssigned(TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, SProject project, Set<SUser> users)Called when responsibility for the test is assigned on certain users.voidnotifyResponsibleAssigned(SBuildType buildType, Set<SUser> users)Called when responsibility for the build type is assigned on certain users.voidnotifyResponsibleChanged(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, Set<SUser> users)Called when responsibility for several tests at once is changed.voidnotifyResponsibleChanged(TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, SProject project, Set<SUser> users)Called when responsibility for the test changed.voidnotifyResponsibleChanged(SBuildType buildType, Set<SUser> users)Called when responsibility for configuration changed.voidnotifyTestsMuted(Collection<STest> tests, MuteInfo muteInfo, Set<SUser> users)Called when a set of tests are unmuted (with same mute properties).voidnotifyTestsUnmuted(Collection<STest> tests, MuteInfo muteInfo, SUser user, Set<SUser> users)Called when a set of tests are unmuted (with same mute properties).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.notification.Notificator
getNotificatorType
-
-
-
-
Method Detail
-
notifyBuildStarted
public void notifyBuildStarted(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when new build started.- Specified by:
notifyBuildStartedin interfaceNotificator- Parameters:
build- started build.users- users to be notified.
-
notifyBuildSuccessful
public void notifyBuildSuccessful(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build finished successfully.- Specified by:
notifyBuildSuccessfulin interfaceNotificator- Parameters:
build- finished build.users- users to be notified.
-
notifyBuildFailed
public void notifyBuildFailed(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build failed.- Specified by:
notifyBuildFailedin interfaceNotificator- Parameters:
build- finished buildusers- users to be notified.
-
notifyBuildFailedToStart
public void notifyBuildFailedToStart(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build failed with internal error, i.e. could not actually start.- Specified by:
notifyBuildFailedToStartin interfaceNotificator- Parameters:
build- failed buildusers- users to be notified
-
notifyLabelingFailed
public void notifyLabelingFailed(@NotNull Build build, @NotNull VcsRoot root, @NotNull Throwable exception, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when labeling failed for the build.- Specified by:
notifyLabelingFailedin interfaceNotificator- Parameters:
build- finished build.root- problem root.exception- cause.users- users to be notified.
-
notifyBuildFailing
public void notifyBuildFailing(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when the first failed message occurred.- Specified by:
notifyBuildFailingin interfaceNotificator- Parameters:
build- running build.users- users to be notified.
-
notifyBuildProbablyHanging
public void notifyBuildProbablyHanging(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build is not sending messages to server for some time.- Specified by:
notifyBuildProbablyHangingin interfaceNotificator- Parameters:
build- running build.users- users to be notified.
-
notifyResponsibleChanged
public void notifyResponsibleChanged(@NotNull SBuildType buildType, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for configuration changed.- Specified by:
notifyResponsibleChangedin interfaceNotificator- Parameters:
buildType- configuration.users- users to be notified.
-
notifyResponsibleAssigned
public void notifyResponsibleAssigned(@NotNull SBuildType buildType, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for the build type is assigned on certain users.- Specified by:
notifyResponsibleAssignedin interfaceNotificator- Parameters:
buildType- configuration.users- users to be notified.
-
notifyResponsibleChanged
public void notifyResponsibleChanged(@Nullable TestNameResponsibilityEntry oldValue, @NotNull TestNameResponsibilityEntry newValue, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for the test changed.- Specified by:
notifyResponsibleChangedin interfaceNotificator- Parameters:
oldValue- old responsibility entry (nullable).newValue- new responsibility entry.project- the project.users- users to be notified.
-
notifyResponsibleAssigned
public void notifyResponsibleAssigned(@Nullable TestNameResponsibilityEntry oldValue, @NotNull TestNameResponsibilityEntry newValue, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for the test is assigned on certain users.- Specified by:
notifyResponsibleAssignedin interfaceNotificator- Parameters:
oldValue- old responsibility entry (nullable).newValue- new responsibility entry.project- the project.users- users to be notified.
-
notifyResponsibleChanged
public void notifyResponsibleChanged(@NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for several tests at once is changed.- Specified by:
notifyResponsibleChangedin interfaceNotificator- Parameters:
testNames- the collection of test namesentry- new responsibility entry for each testproject- the projectusers- users to be notified
-
notifyResponsibleAssigned
public void notifyResponsibleAssigned(@NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for several tests at once is assigned.- Specified by:
notifyResponsibleAssignedin interfaceNotificator- Parameters:
testNames- the collection of test namesentry- new responsibility entry for each testproject- the projectusers- users to be notified
-
notifyBuildProblemResponsibleAssigned
public void notifyBuildProblemResponsibleAssigned(@NotNull Collection<BuildProblemInfo> buildProblems, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for several build problems is assigned.- Specified by:
notifyBuildProblemResponsibleAssignedin interfaceNotificator- Parameters:
buildProblems- affected build problemsentry- new responsibility entryproject- corresponding projectusers- users to be notified
-
notifyBuildProblemResponsibleChanged
public void notifyBuildProblemResponsibleChanged(@NotNull Collection<BuildProblemInfo> buildProblems, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for several build problems is changed.- Specified by:
notifyBuildProblemResponsibleChangedin interfaceNotificator- Parameters:
buildProblems- affected build problemsentry- new responsibility entryproject- corresponding projectusers- users to be notified
-
notifyTestsMuted
public void notifyTestsMuted(@NotNull Collection<STest> tests, @NotNull MuteInfo muteInfo, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a set of tests are unmuted (with same mute properties). All tests are in the same project.- Specified by:
notifyTestsMutedin interfaceNotificator- Parameters:
tests- the unmuted testsmuteInfo- the mute info on the moment of unmuteusers- users to be notified
-
notifyTestsUnmuted
public void notifyTestsUnmuted(@NotNull Collection<STest> tests, @NotNull MuteInfo muteInfo, @Nullable SUser user, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a set of tests are unmuted (with same mute properties). All tests are in the same project.- Specified by:
notifyTestsUnmutedin interfaceNotificator- Parameters:
tests- the unmuted testsuser- user who performed the action (if known)users- users to be notified
-
notifyBuildProblemsMuted
public void notifyBuildProblemsMuted(@NotNull Collection<BuildProblemInfo> buildProblems, @NotNull MuteInfo muteInfo, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a set of build problems are muted (with same mute properties). All problems belong the same project.- Specified by:
notifyBuildProblemsMutedin interfaceNotificator- Parameters:
buildProblems- the muted problemsmuteInfo- mute infousers- users to be notified
-
notifyBuildProblemsUnmuted
public void notifyBuildProblemsUnmuted(@NotNull Collection<BuildProblemInfo> buildProblems, @NotNull MuteInfo muteInfo, @Nullable SUser user, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a set of build problems are unmuted (with same mute properties). All problems belong the same project.- Specified by:
notifyBuildProblemsUnmutedin interfaceNotificator- Parameters:
buildProblems- the unmuted problemsuser- user who performed the action (if known)users- users to be notified
-
notifyQueuedBuildWaitingForApproval
public void notifyQueuedBuildWaitingForApproval(@NotNull SQueuedBuild queuedBuild, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a build that requires approval from the user is added into the build queue.- Specified by:
notifyQueuedBuildWaitingForApprovalin interfaceNotificator- Parameters:
queuedBuild- queued buildusers- users to be notified
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:NotificatorNotificator display name.- Specified by:
getDisplayNamein interfaceNotificator- Returns:
- notificator display name.
-
-