jetbrains.buildServer.notification
Interface Notificator

All Known Implementing Classes:
NotificatorAdapter

public interface Notificator

Custom notificator interface. Implement it to provide new notification facilities.


Method Summary
 java.lang.String getDisplayName()
          Notificator display name.
 java.lang.String getNotificatorType()
          Unique type of the notificator.
 void notifyBuildFailed(SRunningBuild build, java.util.Set<SUser> users)
          Called when build failed.
 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(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(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.
 

Method Detail

notifyBuildStarted

void notifyBuildStarted(SRunningBuild build,
                        java.util.Set<SUser> users)
Called when new build started.

Parameters:
build - started build.
users - users to be notified.

notifyBuildSuccessful

void notifyBuildSuccessful(SRunningBuild build,
                           java.util.Set<SUser> users)
Called when build finished successfully.

Parameters:
build - finished build.
users - users to be notified.

notifyBuildFailed

void notifyBuildFailed(SRunningBuild build,
                       java.util.Set<SUser> users)
Called when build failed.

Parameters:
build - finished build
users - users to be notified.

notifyLabelingFailed

void notifyLabelingFailed(Build build,
                          VcsRoot root,
                          java.lang.Throwable exception,
                          java.util.Set<SUser> users)
Called when labeling failed for the build.

Parameters:
build - finished build.
root - problem root.
exception - cause.
users - users to be notified.

notifyBuildFailing

void notifyBuildFailing(SRunningBuild build,
                        java.util.Set<SUser> users)
Called when the first failed message occurred.

Parameters:
build - running build.
users - users to be notified.

notifyBuildProbablyHanging

void notifyBuildProbablyHanging(SRunningBuild build,
                                java.util.Set<SUser> users)
Called when build is not sending messages to server for some time.

Parameters:
build - running build.
users - users to be notified.

notifyResponsibleChanged

void notifyResponsibleChanged(SBuildType buildType,
                              java.util.Set<SUser> users)
Called when responsibility for configuration changed.

Parameters:
buildType - configuration.
users - users to be notified.

notifyResponsibleAssigned

void notifyResponsibleAssigned(SBuildType buildType,
                               java.util.Set<SUser> users)
Called when responsibility for the build type is assigned on certain users.

Parameters:
buildType - configuration.
users - users to be notified.
Since:
5.0

notifyResponsibleChanged

void notifyResponsibleChanged(TestNameResponsibilityEntry oldValue,
                              TestNameResponsibilityEntry newValue,
                              SProject project,
                              java.util.Set<SUser> users)
Called when responsibility for the test changed.

Parameters:
oldValue - old responsibility entry (nullable).
newValue - new responsibility entry.
project - the project.
users - users to be notified.
Since:
5.0

notifyResponsibleAssigned

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

Parameters:
oldValue - old responsibility entry (nullable).
newValue - new responsibility entry.
project - the project.
users - users to be notified.
Since:
5.0

getNotificatorType

@NotNull
@NonNls
java.lang.String getNotificatorType()
Unique type of the notificator.

Returns:
notificator unique key.

getDisplayName

@NotNull
java.lang.String getDisplayName()
Notificator display name.

Returns:
nodificator display name.