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 ofJENKINS_HOME
, and if it's almost filled up, warn the user.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HudsonHomeDiskUsageMonitor.Solution
Extension 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 Constructor Description HudsonHomeDiskUsageMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doAct(String no)
Depending on whether the user said "yes" or "no", send him to the right place.static HudsonHomeDiskUsageMonitor
get()
Short cut for getting the singleton instance.String
getDisplayName()
HudsonHomeDiskUsageMonitor.Solution
getSolution(String id)
Binds a solution to the URL.List<HudsonHomeDiskUsageMonitor.Solution>
getSolutions()
boolean
isActivated()
Returns true if this monitor is activated and wants to produce a warning message.-
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
-
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
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classAdministrativeMonitor
-
doAct
public org.kohsuke.stapler.HttpResponse doAct(@QueryParameter String no) throws IOException
Depending on whether the user said "yes" or "no", send him to the right place.- Throws:
IOException
-
getSolutions
public List<HudsonHomeDiskUsageMonitor.Solution> getSolutions()
-
getSolution
public HudsonHomeDiskUsageMonitor.Solution getSolution(String id)
Binds a solution to the URL.
-
get
public static HudsonHomeDiskUsageMonitor get()
Short cut for getting the singleton instance.
-
-