hudson.node_monitors
Class AbstractDiskSpaceMonitor

java.lang.Object
  extended by hudson.node_monitors.NodeMonitor
      extended by hudson.node_monitors.AbstractDiskSpaceMonitor
All Implemented Interfaces:
ExtensionPoint, Describable<NodeMonitor>
Direct Known Subclasses:
DiskSpaceMonitor, TemporarySpaceMonitor

public abstract class AbstractDiskSpaceMonitor
extends NodeMonitor

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 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
AbstractDiskSpaceMonitor()
           
AbstractDiskSpaceMonitor(String threshold)
           
 
Method Summary
 Object data(Computer c)
          Obtains the monitoring result currently available, or null if no data is available.
 long getThresholdBytes()
           
 
Methods inherited from class hudson.node_monitors.NodeMonitor
all, getAll, getColumnCaption, getDescriptor, isIgnored, setIgnored, triggerUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

@DataBoundConstructor
public AbstractDiskSpaceMonitor(String threshold)
                         throws ParseException
Throws:
ParseException

AbstractDiskSpaceMonitor

public AbstractDiskSpaceMonitor()
Method Detail

getThresholdBytes

public long getThresholdBytes()

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 class NodeMonitor


Copyright © 2004-2013. All Rights Reserved.