Package hudson.triggers
Class SlowTriggerAdminMonitor
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.AdministrativeMonitor
-
- hudson.triggers.SlowTriggerAdminMonitor
-
- All Implemented Interfaces:
ExtensionPoint
,ModelObject
,SearchableModelObject
,SearchItem
,org.kohsuke.stapler.StaplerProxy
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class SlowTriggerAdminMonitor extends AdministrativeMonitor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SlowTriggerAdminMonitor.Value
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_ENTRIES
-
Fields inherited from class hudson.model.AdministrativeMonitor
id
-
-
Constructor Summary
Constructors Constructor Description SlowTriggerAdminMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
org.kohsuke.stapler.HttpResponse
doClear()
String
getDisplayName()
Map<String,SlowTriggerAdminMonitor.Value>
getErrors()
static SlowTriggerAdminMonitor
getInstance()
boolean
isActivated()
Returns true if this monitor is activated and wants to produce a warning message.void
report(Class<? extends TriggerDescriptor> trigger, String fullJobName, long duration)
-
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled, isSecurity
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Method Detail
-
getInstance
@NonNull public static SlowTriggerAdminMonitor getInstance()
-
isActivated
public boolean isActivated()
Description copied from class:AdministrativeMonitor
Returns true if this monitor is activated and wants to produce a warning message.This method is called from the HTML rendering thread, so it should run efficiently.
- Specified by:
isActivated
in classAdministrativeMonitor
-
getDisplayName
@NonNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classAdministrativeMonitor
-
clear
public void clear()
-
report
public void report(@NonNull Class<? extends TriggerDescriptor> trigger, @NonNull String fullJobName, long duration)
-
getErrors
@NonNull public Map<String,SlowTriggerAdminMonitor.Value> getErrors()
-
doClear
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @NonNull public org.kohsuke.stapler.HttpResponse doClear()
-
-