Package hudson.node_monitors
Class AbstractDiskSpaceMonitor
- java.lang.Object
-
- hudson.node_monitors.NodeMonitor
-
- hudson.node_monitors.AbstractDiskSpaceMonitor
-
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeMonitor>
- Direct Known Subclasses:
DiskSpaceMonitor,TemporarySpaceMonitor
public abstract class AbstractDiskSpaceMonitor extends NodeMonitor
- Author:
- Kohsuke Kawaguchi
- See Also:
DiskSpaceMonitorDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description StringfreeSpaceThresholdThe free space threshold, below which the node monitor will be triggered.-
Fields inherited from class hudson.node_monitors.NodeMonitor
LIST
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDiskSpaceMonitor()protectedAbstractDiskSpaceMonitor(String threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectdata(Computer c)Obtains the monitoring result currently available, or null if no data is available.StringgetFreeSpaceWarningThreshold()longgetThresholdBytes()protected longgetThresholdBytes(Computer c)protected longgetWarningThresholdBytes()protected longgetWarningThresholdBytes(Computer c)ObjectreadResolve()voidsetFreeSpaceWarningThreshold(String freeSpaceWarningThreshold)-
Methods inherited from class hudson.node_monitors.NodeMonitor
all, getAll, getColumnCaption, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
-
-
-
Field Detail
-
freeSpaceThreshold
public final String freeSpaceThreshold
The free space threshold, below which the node monitor will be triggered. This is a human readable string representation as entered by the user, so that we can retain the original notation.
-
-
Constructor Detail
-
AbstractDiskSpaceMonitor
protected AbstractDiskSpaceMonitor(String threshold) throws ParseException
- Throws:
ParseException
-
AbstractDiskSpaceMonitor
protected AbstractDiskSpaceMonitor()
-
-
Method Detail
-
readResolve
public Object readResolve()
-
setFreeSpaceWarningThreshold
@DataBoundSetter public void setFreeSpaceWarningThreshold(String freeSpaceWarningThreshold)
-
getFreeSpaceWarningThreshold
public String getFreeSpaceWarningThreshold()
-
getThresholdBytes
public long getThresholdBytes()
-
getThresholdBytes
protected long getThresholdBytes(Computer c)
-
getWarningThresholdBytes
protected long getWarningThresholdBytes()
-
getWarningThresholdBytes
protected long getWarningThresholdBytes(Computer c)
-
data
public Object data(Computer c)
Description copied from class:NodeMonitorObtains the monitoring result currently available, or null if no data is available.- Overrides:
datain classNodeMonitor
-
-