Package hudson.diagnosis
Class HudsonHomeDiskUsageMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
hudson.diagnosis.HudsonHomeDiskUsageMonitor
- All Implemented Interfaces:
ExtensionPoint,ModelObject,SearchableModelObject,SearchItem,org.kohsuke.stapler.StaplerProxy
@Extension
@Symbol("diskUsageCheck")
public final class HudsonHomeDiskUsageMonitor
extends AdministrativeMonitor
Monitors the disk usage of
JENKINS_HOME, and if it's almost filled up, warn the user.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExtension point for suggesting solutions for full JENKINS_HOME.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AdministrativeMonitor
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponseDepending on whether the user said "yes" or "no", send him to the right place.static HudsonHomeDiskUsageMonitorget()Short cut for getting the singleton instance.getSolution(String id) Binds a solution to the URL.booleanReturns true if this monitor is activated and wants to produce a warning message.Methods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isActivationFake, isEnabled, isSecurityMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
HudsonHomeDiskUsageMonitor
public HudsonHomeDiskUsageMonitor()
-
-
Method Details
-
isActivated
public boolean isActivated()Description copied from class:AdministrativeMonitorReturns 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:
isActivatedin classAdministrativeMonitor
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classAdministrativeMonitor
-
doAct
Depending on whether the user said "yes" or "no", send him to the right place.- Throws:
IOException
-
getSolutions
-
getSolution
Binds a solution to the URL. -
get
Short cut for getting the singleton instance.
-