Class NotificatorAdapter

  • All Implemented Interfaces:
    Notificator

    public abstract class NotificatorAdapter
    extends java.lang.Object
    implements Notificator
    Simple Notificator implementation. Does nothing.
    • Constructor Detail

      • NotificatorAdapter

        public NotificatorAdapter()
    • Method Detail

      • notifyBuildStarted

        public void notifyBuildStarted​(@NotNull
                                       SRunningBuild build,
                                       @NotNull
                                       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​(@NotNull
                                          SRunningBuild build,
                                          @NotNull
                                          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​(@NotNull
                                      SRunningBuild build,
                                      @NotNull
                                      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​(@NotNull
                                             SRunningBuild build,
                                             @NotNull
                                             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​(@NotNull
                                         Build build,
                                         @NotNull
                                         VcsRoot root,
                                         @NotNull
                                         java.lang.Throwable exception,
                                         @NotNull
                                         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​(@NotNull
                                       SRunningBuild build,
                                       @NotNull
                                       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​(@NotNull
                                               SRunningBuild build,
                                               @NotNull
                                               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​(@NotNull
                                             SBuildType buildType,
                                             @NotNull
                                             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​(@NotNull
                                              SBuildType buildType,
                                              @NotNull
                                              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​(@NotNull
                                             java.util.Collection<TestName> testNames,
                                             @NotNull
                                             ResponsibilityEntry entry,
                                             @NotNull
                                             SProject project,
                                             @NotNull
                                             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​(@NotNull
                                              java.util.Collection<TestName> testNames,
                                              @NotNull
                                              ResponsibilityEntry entry,
                                              @NotNull
                                              SProject project,
                                              @NotNull
                                              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
      • notifyBuildProblemResponsibleAssigned

        public void notifyBuildProblemResponsibleAssigned​(@NotNull
                                                          java.util.Collection<BuildProblemInfo> buildProblems,
                                                          @NotNull
                                                          ResponsibilityEntry entry,
                                                          @NotNull
                                                          SProject project,
                                                          @NotNull
                                                          java.util.Set<SUser> users)
        Description copied from interface: Notificator
        Called when responsibility for several build problems is assigned.
        Specified by:
        notifyBuildProblemResponsibleAssigned in interface Notificator
        Parameters:
        buildProblems - affected build problems
        entry - new responsibility entry
        project - corresponding project
        users - users to be notified
      • notifyBuildProblemResponsibleChanged

        public void notifyBuildProblemResponsibleChanged​(@NotNull
                                                         java.util.Collection<BuildProblemInfo> buildProblems,
                                                         @NotNull
                                                         ResponsibilityEntry entry,
                                                         @NotNull
                                                         SProject project,
                                                         @NotNull
                                                         java.util.Set<SUser> users)
        Description copied from interface: Notificator
        Called when responsibility for several build problems is changed.
        Specified by:
        notifyBuildProblemResponsibleChanged in interface Notificator
        Parameters:
        buildProblems - affected build problems
        entry - new responsibility entry
        project - corresponding project
        users - users to be notified
      • notifyTestsMuted

        public void notifyTestsMuted​(@NotNull
                                     java.util.Collection<STest> tests,
                                     @NotNull
                                     MuteInfo muteInfo,
                                     @NotNull
                                     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
        muteInfo - the mute info on the moment of unmute
        users - users to be notified
      • notifyTestsUnmuted

        public void notifyTestsUnmuted​(@NotNull
                                       java.util.Collection<STest> tests,
                                       @NotNull
                                       MuteInfo muteInfo,
                                       @Nullable
                                       SUser user,
                                       @NotNull
                                       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
        user - user who performed the action (if known)
        users - users to be notified
      • notifyBuildProblemsMuted

        public void notifyBuildProblemsMuted​(@NotNull
                                             java.util.Collection<BuildProblemInfo> buildProblems,
                                             @NotNull
                                             MuteInfo muteInfo,
                                             @NotNull
                                             java.util.Set<SUser> users)
        Description copied from interface: Notificator
        Called when a set of build problems are muted (with same mute properties). All problems belong the same project.
        Specified by:
        notifyBuildProblemsMuted in interface Notificator
        Parameters:
        buildProblems - the muted problems
        muteInfo - mute info
        users - users to be notified
      • notifyBuildProblemsUnmuted

        public void notifyBuildProblemsUnmuted​(@NotNull
                                               java.util.Collection<BuildProblemInfo> buildProblems,
                                               @NotNull
                                               MuteInfo muteInfo,
                                               @Nullable
                                               SUser user,
                                               @NotNull
                                               java.util.Set<SUser> users)
        Description copied from interface: Notificator
        Called when a set of build problems are unmuted (with same mute properties). All problems belong the same project.
        Specified by:
        notifyBuildProblemsUnmuted in interface Notificator
        Parameters:
        buildProblems - the unmuted problems
        user - user who performed the action (if known)
        users - users to be notified
      • notifyQueuedBuildWaitingForApproval

        public void notifyQueuedBuildWaitingForApproval​(@NotNull
                                                        SQueuedBuild queuedBuild,
                                                        @NotNull
                                                        java.util.Set<SUser> users)
        Description copied from interface: Notificator
        Called when a build that requires approval from the user is added into the build queue.
        Specified by:
        notifyQueuedBuildWaitingForApproval in interface Notificator
        Parameters:
        queuedBuild - queued build
        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:
        notificator display name.