public class EventListenersReport extends Object implements hudson.model.ModelObject
Diagnostics
page showing
the list of registered GerritEventListener
s.Modifier and Type | Method and 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 than
EventListener s. |
Set<com.sonymobile.tools.gerrit.gerritevents.GerritEventListener> |
getOthers()
Any other listeners that are not
EventListener s for jobs. |
static EventListenersReport |
report()
Produces a report from the active
GerritHandler . |
public Set<EventListener> getJobs()
EventListener
s.public Set<com.sonymobile.tools.gerrit.gerritevents.GerritEventListener> getOthers()
EventListener
s for jobs.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getName(com.sonymobile.tools.gerrit.gerritevents.GerritEventListener listener)
EventListener
s.
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
.listener
- the listener to display a name for.@CheckForNull public static EventListenersReport report()
GerritHandler
.PluginImpl.getHandler_()
public String getDisplayName()
getDisplayName
in interface hudson.model.ModelObject
Copyright © 2016–2020. All rights reserved.