jetbrains.buildServer.notification
Class NotificatorAdapter

java.lang.Object
  extended by jetbrains.buildServer.notification.NotificatorAdapter
All Implemented Interfaces:
Notificator

public abstract class NotificatorAdapter
extends java.lang.Object
implements Notificator

Simple Notificator implementsion. Does nothing.


Constructor Summary
NotificatorAdapter()
           
 
Method Summary
 java.lang.String getDisplayName()
          Notificator display name.
 void notifyBuildFailed(SRunningBuild build, java.util.Set<SUser> users)
          Called when build failed.
 void notifyBuildFailedToStart(SRunningBuild build, java.util.Set<SUser> users)
          Called when build failed with internal error, i.e.
 void notifyBuildFailing(SRunningBuild build, java.util.Set<SUser> users)
          Called when the first failed message occurred.
 void notifyBuildProbablyHanging(SRunningBuild build, java.util.Set<SUser> users)
          Called when build is not sending messages to server for some time.
 void notifyBuildStarted(SRunningBuild build, java.util.Set<SUser> users)
          Called when new build started.
 void notifyBuildSuccessful(SRunningBuild build, java.util.Set<SUser> users)
          Called when build finished successfully.
 void notifyLabelingFailed(Build build, VcsRoot root, java.lang.Throwable exception, java.util.Set<SUser> users)
          Called when labeling failed for the build.
 void notifyResponsibleAssigned(java.util.Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, java.util.Set<SUser> users)
          Called when responsibility for several tests at once is assigned.
 void notifyResponsibleAssigned(SBuildType buildType, java.util.Set<SUser> users)
          Called when responsibility for the build type is assigned on certain users.
 void notifyResponsibleAssigned(TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, SProject project, java.util.Set<SUser> users)
          Called when responsibility for the test is assigned on certain users.
 void notifyResponsibleChanged(java.util.Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, java.util.Set<SUser> users)
          Called when responsibility for several tests at once is changed.
 void notifyResponsibleChanged(SBuildType buildType, java.util.Set<SUser> users)
          Called when responsibility for configuration changed.
 void notifyResponsibleChanged(TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, SProject project, java.util.Set<SUser> users)
          Called when responsibility for the test changed.
 void notifyTestsMuted(java.util.Collection<STest> tests, MuteInfo muteInfo, java.util.Set<SUser> users)
          Called when a set of tests are unmuted (with same mute properties).
 void notifyTestsUnmuted(java.util.Collection<STest> tests, MuteInfo muteInfo, java.util.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
 

Constructor Detail

NotificatorAdapter

public NotificatorAdapter()
Method Detail

notifyBuildStarted

public void notifyBuildStarted(SRunningBuild build,
                               java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when new build started.

Specified by:
notifyBuildStarted in interface Notificator
Parameters:
build - started build.
users - users to be notified.

notifyBuildSuccessful

public void notifyBuildSuccessful(SRunningBuild build,
                                  java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when build finished successfully.

Specified by:
notifyBuildSuccessful in interface Notificator
Parameters:
build - finished build.
users - users to be notified.

notifyBuildFailed

public void notifyBuildFailed(SRunningBuild build,
                              java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when build failed.

Specified by:
notifyBuildFailed in interface Notificator
Parameters:
build - finished build
users - users to be notified.

notifyBuildFailedToStart

public void notifyBuildFailedToStart(SRunningBuild build,
                                     java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when build failed with internal error, i.e. could not actually start.

Specified by:
notifyBuildFailedToStart in interface Notificator
Parameters:
build - failed build
users - users to be notified

notifyLabelingFailed

public void notifyLabelingFailed(Build build,
                                 VcsRoot root,
                                 java.lang.Throwable exception,
                                 java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when labeling failed for the build.

Specified by:
notifyLabelingFailed in interface Notificator
Parameters:
build - finished build.
root - problem root.
exception - cause.
users - users to be notified.

notifyBuildFailing

public void notifyBuildFailing(SRunningBuild build,
                               java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when the first failed message occurred.

Specified by:
notifyBuildFailing in interface Notificator
Parameters:
build - running build.
users - users to be notified.

notifyBuildProbablyHanging

public void notifyBuildProbablyHanging(SRunningBuild build,
                                       java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when build is not sending messages to server for some time.

Specified by:
notifyBuildProbablyHanging in interface Notificator
Parameters:
build - running build.
users - users to be notified.

notifyResponsibleChanged

public void notifyResponsibleChanged(SBuildType buildType,
                                     java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when responsibility for configuration changed.

Specified by:
notifyResponsibleChanged in interface Notificator
Parameters:
buildType - configuration.
users - users to be notified.

notifyResponsibleAssigned

public void notifyResponsibleAssigned(SBuildType buildType,
                                      java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when responsibility for the build type is assigned on certain users.

Specified by:
notifyResponsibleAssigned in interface Notificator
Parameters:
buildType - configuration.
users - users to be notified.

notifyResponsibleChanged

public void notifyResponsibleChanged(TestNameResponsibilityEntry oldValue,
                                     TestNameResponsibilityEntry newValue,
                                     SProject project,
                                     java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when responsibility for the test changed.

Specified by:
notifyResponsibleChanged in interface Notificator
Parameters:
oldValue - old responsibility entry (nullable).
newValue - new responsibility entry.
project - the project.
users - users to be notified.

notifyResponsibleAssigned

public void notifyResponsibleAssigned(TestNameResponsibilityEntry oldValue,
                                      TestNameResponsibilityEntry newValue,
                                      SProject project,
                                      java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when responsibility for the test is assigned on certain users.

Specified by:
notifyResponsibleAssigned in interface Notificator
Parameters:
oldValue - old responsibility entry (nullable).
newValue - new responsibility entry.
project - the project.
users - users to be notified.

notifyResponsibleChanged

public void notifyResponsibleChanged(java.util.Collection<TestName> testNames,
                                     ResponsibilityEntry entry,
                                     SProject project,
                                     java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when responsibility for several tests at once is changed.

Specified by:
notifyResponsibleChanged in interface Notificator
Parameters:
testNames - the collection of test names
entry - new responsibility entry for each test
project - the project
users - users to be notified

notifyResponsibleAssigned

public void notifyResponsibleAssigned(java.util.Collection<TestName> testNames,
                                      ResponsibilityEntry entry,
                                      SProject project,
                                      java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when responsibility for several tests at once is assigned.

Specified by:
notifyResponsibleAssigned in interface Notificator
Parameters:
testNames - the collection of test names
entry - new responsibility entry for each test
project - the project
users - users to be notified

notifyTestsMuted

public void notifyTestsMuted(java.util.Collection<STest> tests,
                             MuteInfo muteInfo,
                             java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when a set of tests are unmuted (with same mute properties). All tests are in the same project.

Specified by:
notifyTestsMuted in interface Notificator
Parameters:
tests - the unmuted tests
users - users to be notified

notifyTestsUnmuted

public void notifyTestsUnmuted(java.util.Collection<STest> tests,
                               MuteInfo muteInfo,
                               java.util.Set<SUser> users)
Description copied from interface: Notificator
Called when a set of tests are unmuted (with same mute properties). All tests are in the same project.

Specified by:
notifyTestsUnmuted in interface Notificator
Parameters:
tests - the unmuted tests
users - users to be notified

getDisplayName

@NotNull
public java.lang.String getDisplayName()
Description copied from interface: Notificator
Notificator display name.

Specified by:
getDisplayName in interface Notificator
Returns:
nodificator display name.