Class EventListenersReport
- java.lang.Object
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.EventListenersReport
-
- All Implemented Interfaces:
ModelObject
public class EventListenersReport extends Object implements ModelObject
ADiagnostics
page showing the list of registeredGerritEventListener
s.- Author:
- Robert Sandell <rsandell@cloudbees.com>.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Set<EventListener>
getJobs()
The list of job specific listeners.String
getName(com.sonymobile.tools.gerrit.gerritevents.GerritEventListener listener)
A shorter/more descriptive name to display for any other listener thanEventListener
s.Set<com.sonymobile.tools.gerrit.gerritevents.GerritEventListener>
getOthers()
Any other listeners that are notEventListener
s for jobs.static EventListenersReport
report()
Produces a report from the activeGerritHandler
.
-
-
-
Method Detail
-
getJobs
public Set<EventListener> getJobs()
The list of job specific listeners. An ordered set ofEventListener
s.- Returns:
- the listeners for jobs
-
getOthers
public Set<com.sonymobile.tools.gerrit.gerritevents.GerritEventListener> getOthers()
Any other listeners that are notEventListener
s 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 thanEventListener
s. The default is to useClass.getSimpleName()
but for some can contain a bit more information like whichGerritServer
the 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
@CheckForNull public static EventListenersReport report()
Produces a report from the activeGerritHandler
.- Returns:
- the report.
- See Also:
PluginImpl.getHandler_()
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
-