Package hudson.node_monitors
Class TemporarySpaceMonitor
- java.lang.Object
-
- hudson.node_monitors.NodeMonitor
-
- hudson.node_monitors.AbstractDiskSpaceMonitor
-
- hudson.node_monitors.TemporarySpaceMonitor
-
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeMonitor>
public class TemporarySpaceMonitor extends AbstractDiskSpaceMonitor
Monitors the disk space of "/tmp".- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemporarySpaceMonitor.DescriptorImplprotected static classTemporarySpaceMonitor.GetTempSpace-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static DiskSpaceMonitorDescriptorDESCRIPTORDeprecated.as of 2.0 Use injection-
Fields inherited from class hudson.node_monitors.AbstractDiskSpaceMonitor
freeSpaceThreshold
-
Fields inherited from class hudson.node_monitors.NodeMonitor
LIST
-
-
Constructor Summary
Constructors Constructor Description TemporarySpaceMonitor()TemporarySpaceMonitor(String freeSpaceThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnCaption()Returns the name of the column to be added toComputerSetindex.jelly.DiskSpaceMonitorDescriptor.DiskSpacegetFreeSpace(Computer c)longgetThresholdBytes(Computer c)protected longgetWarningThresholdBytes(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
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static DiskSpaceMonitorDescriptor DESCRIPTOR
Deprecated.as of 2.0 Use injection
-
-
Constructor Detail
-
TemporarySpaceMonitor
@DataBoundConstructor public TemporarySpaceMonitor(String freeSpaceThreshold) throws ParseException
- Throws:
ParseException
-
TemporarySpaceMonitor
public TemporarySpaceMonitor()
-
-
Method Detail
-
getThresholdBytes
public long getThresholdBytes(Computer c)
- Overrides:
getThresholdBytesin classAbstractDiskSpaceMonitor
-
getWarningThresholdBytes
protected long getWarningThresholdBytes(Computer c)
- Overrides:
getWarningThresholdBytesin classAbstractDiskSpaceMonitor
-
getFreeSpace
public DiskSpaceMonitorDescriptor.DiskSpace getFreeSpace(Computer c)
-
getColumnCaption
public String getColumnCaption()
Description copied from class:NodeMonitorReturns the name of the column to be added toComputerSetindex.jelly.- Overrides:
getColumnCaptionin classNodeMonitor- Returns:
- null to not render a column. The convention is to use capitalization like "Foo Bar Zot".
-
-