Package hudson.node_monitors
Class DiskSpaceMonitor
- java.lang.Object
-
- hudson.node_monitors.NodeMonitor
-
- hudson.node_monitors.AbstractDiskSpaceMonitor
-
- hudson.node_monitors.DiskSpaceMonitor
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<NodeMonitor>
public class DiskSpaceMonitor extends AbstractDiskSpaceMonitor
Checks available disk space of the remote FS root. Requires Mustang.- Since:
- 1.123
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static DiskSpaceMonitorDescriptor
DESCRIPTOR
-
Fields inherited from class hudson.node_monitors.AbstractDiskSpaceMonitor
freeSpaceThreshold
-
Fields inherited from class hudson.node_monitors.NodeMonitor
LIST
-
-
Constructor Summary
Constructors Constructor Description DiskSpaceMonitor()
DiskSpaceMonitor(String freeSpaceThreshold)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColumnCaption()
Returns the name of the column to be added toComputerSet
index.jelly.DiskSpaceMonitorDescriptor.DiskSpace
getFreeSpace(Computer c)
static DiskSpaceMonitorDescriptor
install()
-
Methods inherited from class hudson.node_monitors.AbstractDiskSpaceMonitor
data, getThresholdBytes, markNodeOfflineIfDiskspaceIsTooLow
-
Methods inherited from class hudson.node_monitors.NodeMonitor
all, getAll, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
-
-
-
Field Detail
-
DESCRIPTOR
public static final DiskSpaceMonitorDescriptor DESCRIPTOR
-
-
Constructor Detail
-
DiskSpaceMonitor
@DataBoundConstructor public DiskSpaceMonitor(String freeSpaceThreshold) throws ParseException
- Throws:
ParseException
-
DiskSpaceMonitor
public DiskSpaceMonitor()
-
-
Method Detail
-
getFreeSpace
public DiskSpaceMonitorDescriptor.DiskSpace getFreeSpace(Computer c)
-
getColumnCaption
public String getColumnCaption()
Description copied from class:NodeMonitor
Returns the name of the column to be added toComputerSet
index.jelly.- Overrides:
getColumnCaption
in classNodeMonitor
- Returns:
- null to not render a column. The convention is to use capitalization like "Foo Bar Zot".
-
install
@Extension public static DiskSpaceMonitorDescriptor install()
-
-