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 String
freeSpaceThreshold
The 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 protected
AbstractDiskSpaceMonitor()
protected
AbstractDiskSpaceMonitor(String threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
data(Computer c)
Obtains the monitoring result currently available, or null if no data is available.String
getFreeSpaceWarningThreshold()
long
getThresholdBytes()
protected long
getThresholdBytes(Computer c)
protected long
getWarningThresholdBytes()
protected long
getWarningThresholdBytes(Computer c)
Object
readResolve()
void
setFreeSpaceWarningThreshold(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:NodeMonitor
Obtains the monitoring result currently available, or null if no data is available.- Overrides:
data
in classNodeMonitor
-
-