Class Diagnostics
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.diagnostics.Diagnostics
- All Implemented Interfaces:
ModelObject,ModelObjectWithChildren,ModelObjectWithContextMenu
public class Diagnostics
extends Object
implements ModelObjectWithChildren, ModelObjectWithContextMenu
Sub page on
GerritManagement containing some diagnostic views.-
Nested Class Summary
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoTriggerDebugEvent(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Triggers aManualPatchsetCreatedevent with some random data for debug purposes in a dev environment.A report of the currently coordinated builds.getContextMenu(String context) Helper method to produce the breadcrumb context menu.A report of all registeredGerritEventListeners in the system.static PermissionThe Jenkins permission required to view the diagnostic reports.booleanChecks if the plugin is running in a development environment.
-
Constructor Details
-
Diagnostics
public Diagnostics()
-
-
Method Details
-
doChildrenContextMenu
public ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception - Specified by:
doChildrenContextMenuin interfaceModelObjectWithChildren- Throws:
Exception
-
getContextMenu
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ModelObjectWithContextMenu.ContextMenu getContextMenu(String context) Helper method to produce the breadcrumb context menu.- Parameters:
context- the url prefix to put on all urls.- Returns:
- the selectable reports.
- See Also:
-
getRequiredPermission
The Jenkins permission required to view the diagnostic reports.- Returns:
- the permission
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getBuildMemory
A report of the currently coordinated builds.- Returns:
- the build memory coordination report.
- See Also:
-
getEventListeners
A report of all registeredGerritEventListeners in the system. Intended to be accessed via Stapler URL mapping.- Returns:
- the listeners report.
-
doContextMenu
public ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception - Specified by:
doContextMenuin interfaceModelObjectWithContextMenu- Throws:
Exception
-
doTriggerDebugEvent
public void doTriggerDebugEvent(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException Triggers aManualPatchsetCreatedevent with some random data for debug purposes in a dev environment.- Parameters:
request- staplerresponse- stapler- Throws:
IOException- if so- See Also:
-
isDebugMode
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isDebugMode()Checks if the plugin is running in a development environment.- Returns:
- true if debug
-