java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.EventListenersReport
All Implemented Interfaces:
ModelObject

public class EventListenersReport extends Object implements ModelObject
A Diagnostics page showing the list of registered GerritEventListeners.
Author:
Robert Sandell <rsandell@cloudbees.com>.
  • Method Details

    • getJobs

      public Set<EventListener> getJobs()
      The list of job specific listeners. An ordered set of EventListeners.
      Returns:
      the listeners for jobs
    • getOthers

      public Set<com.sonymobile.tools.gerrit.gerritevents.GerritEventListener> getOthers()
      Any other listeners that are not EventListeners for jobs.
      Returns:
      the other listeners.
    • getName

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getName(com.sonymobile.tools.gerrit.gerritevents.GerritEventListener listener)
      A shorter/more descriptive name to display for any other listener than EventListeners. The default is to use Class.getSimpleName() but for some can contain a bit more information like which GerritServer the listener is targeting, in that case they should implement NamedGerritEventListener.
      Parameters:
      listener - the listener to display a name for.
      Returns:
      the display name of the listener.
    • report

      @CheckForNull public static EventListenersReport report()
      Produces a report from the active GerritHandler.
      Returns:
      the report.
      See Also:
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject