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 Modifier and Type Class Description static class
DiskSpaceMonitor.DescriptorImpl
-
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 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)
long
getThresholdBytes(Computer c)
protected long
getWarningThresholdBytes(Computer c)
-
Methods inherited from class hudson.node_monitors.AbstractDiskSpaceMonitor
data, getFreeSpaceWarningThreshold, getThresholdBytes, getWarningThresholdBytes, readResolve, setFreeSpaceWarningThreshold
-
Methods inherited from class hudson.node_monitors.NodeMonitor
all, getAll, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
-
-
-
Field Detail
-
DESCRIPTOR
public static DiskSpaceMonitorDescriptor DESCRIPTOR
-
-
Constructor Detail
-
DiskSpaceMonitor
@DataBoundConstructor public DiskSpaceMonitor(String freeSpaceThreshold) throws ParseException
- Throws:
ParseException
-
DiskSpaceMonitor
public DiskSpaceMonitor()
-
-
Method Detail
-
getThresholdBytes
public long getThresholdBytes(Computer c)
- Overrides:
getThresholdBytes
in classAbstractDiskSpaceMonitor
-
getWarningThresholdBytes
protected long getWarningThresholdBytes(Computer c)
- Overrides:
getWarningThresholdBytes
in classAbstractDiskSpaceMonitor
-
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".
-
-