Class EventListenersReport
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.EventListenersReport
- All Implemented Interfaces:
ModelObject
A
Diagnostics page showing
the list of registered GerritEventListeners.- Author:
- Robert Sandell <rsandell@cloudbees.com>.
-
Method Summary
Modifier and TypeMethodDescriptiongetJobs()The list of job specific listeners.getName(com.sonymobile.tools.gerrit.gerritevents.GerritEventListener listener) A shorter/more descriptive name to display for any other listener thanEventListeners.Set<com.sonymobile.tools.gerrit.gerritevents.GerritEventListener>Any other listeners that are notEventListeners for jobs.static EventListenersReportreport()Produces a report from the activeGerritHandler.
-
Method Details
-
getJobs
The list of job specific listeners. An ordered set ofEventListeners.- Returns:
- the listeners for jobs
-
getOthers
Any other listeners that are notEventListeners 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 thanEventListeners. The default is to useClass.getSimpleName()but for some can contain a bit more information like whichGerritServerthe listener is targeting, in that case they should implementNamedGerritEventListener.- Parameters:
listener- the listener to display a name for.- Returns:
- the display name of the listener.
-
report
Produces a report from the activeGerritHandler.- Returns:
- the report.
- See Also:
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-