Package hudson.node_monitors
Class SwapSpaceMonitor
- java.lang.Object
-
- hudson.node_monitors.NodeMonitor
-
- hudson.node_monitors.SwapSpaceMonitor
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<NodeMonitor>
public class SwapSpaceMonitor extends NodeMonitor
Checks the swap space availability.- Since:
- 1.233
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SwapSpaceMonitor.DescriptorImpl
static class
SwapSpaceMonitor.MemoryUsage2
Memory Usage.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static AbstractNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage>
DESCRIPTOR
Deprecated.as of 2.0 use injection-
Fields inherited from class hudson.node_monitors.NodeMonitor
LIST
-
-
Constructor Summary
Constructors Constructor Description SwapSpaceMonitor()
-
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.String
toHtml(org.jvnet.hudson.MemoryUsage usage)
Returns the HTML representation of the space.long
toMB(org.jvnet.hudson.MemoryUsage usage)
-
Methods inherited from class hudson.node_monitors.NodeMonitor
all, data, getAll, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
-
-
-
Field Detail
-
DESCRIPTOR
@Deprecated public static AbstractNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage> DESCRIPTOR
Deprecated.as of 2.0 use injection
-
-
Method Detail
-
toHtml
public String toHtml(org.jvnet.hudson.MemoryUsage usage)
Returns the HTML representation of the space.
-
toMB
public long toMB(org.jvnet.hudson.MemoryUsage usage)
-
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".
-
-