Class 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 Detail

      • 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.