public class Diagnostics extends Object implements ModelObjectWithChildren, ModelObjectWithContextMenu
GerritManagement
containing some diagnostic views.ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Constructor and Description |
---|
Diagnostics() |
Modifier and Type | Method and Description |
---|---|
ModelObjectWithContextMenu.ContextMenu |
doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
void |
doTriggerDebugEvent(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Triggers a
ManualPatchsetCreated event with some random data for debug purposes in a dev environment. |
BuildMemoryReport |
getBuildMemory()
A report of the currently coordinated builds.
|
ModelObjectWithContextMenu.ContextMenu |
getContextMenu(String context)
Helper method to produce the breadcrumb context menu.
|
String |
getDisplayName() |
EventListenersReport |
getEventListeners()
A report of all registered
GerritEventListener s
in the system. |
static Permission |
getRequiredPermission()
The Jenkins permission required to view the diagnostic reports.
|
boolean |
isDebugMode()
Checks if the plugin is running in a development environment.
|
public ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doChildrenContextMenu
in interface ModelObjectWithChildren
Exception
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public ModelObjectWithContextMenu.ContextMenu getContextMenu(String context)
context
- the url prefix to put on all urls.doChildrenContextMenu(StaplerRequest, StaplerResponse)
,
GerritManagement.doContextMenu(StaplerRequest, StaplerResponse)
@Nonnull public static Permission getRequiredPermission()
public String getDisplayName()
getDisplayName
in interface ModelObject
@CheckForNull public BuildMemoryReport getBuildMemory()
BuildMemory.report()
@CheckForNull public EventListenersReport getEventListeners()
GerritEventListener
s
in the system.
Intended to be accessed via Stapler URL mapping.public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doContextMenu
in interface ModelObjectWithContextMenu
Exception
public void doTriggerDebugEvent(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
ManualPatchsetCreated
event with some random data for debug purposes in a dev environment.request
- staplerresponse
- staplerIOException
- if soisDebugMode()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isDebugMode()
Copyright © 2016–2019. All rights reserved.