hudson.node_monitors
Class SwapSpaceMonitor

java.lang.Object
  extended by hudson.node_monitors.NodeMonitor
      extended by hudson.node_monitors.SwapSpaceMonitor
All Implemented Interfaces:
ExtensionPoint, Describable<NodeMonitor>

public class SwapSpaceMonitor
extends NodeMonitor

Checks the swap space availability.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class SwapSpaceMonitor.MemoryUsage2
          Memory Usage.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static AbstractNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage> DESCRIPTOR
           
 
Fields inherited from class hudson.node_monitors.NodeMonitor
LIST
 
Constructor Summary
SwapSpaceMonitor()
           
 
Method Summary
 String getColumnCaption()
          Returns the name of the column to be added to ComputerSet 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

@Extension
public static final AbstractNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage> DESCRIPTOR
Constructor Detail

SwapSpaceMonitor

public SwapSpaceMonitor()
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 to ComputerSet index.jelly.

Overrides:
getColumnCaption in class NodeMonitor
Returns:
null to not render a column. The convention is to use capitalization like "Foo Bar Zot".


Copyright © 2004-2013. All Rights Reserved.