Class NodeMonitor
- All Implemented Interfaces:
- ExtensionPoint,- Describable<NodeMonitor>
- Direct Known Subclasses:
- AbstractDiskSpaceMonitor,- ArchitectureMonitor,- ClockMonitor,- ResponseTimeMonitor,- SwapSpaceMonitor
Nodes.
 Views
- column.jelly
- 
 Invoked from ComputerSetindex.jellyto render a column. TheNodeMonitorinstance is accessible through the "from" variable. Also seegetColumnCaption().
- config.jelly (optional)
- 
 Configuration fragment to be displayed in http://server/hudson/computer/configure. Used for configuring the threshold for taking nodes offline.
Persistence
 NodeMonitors are persisted via XStream.
 
CasC
To be able to configureNodeMonitors via JCasC, they should have a DataBoundConstructor- Since:
- 1.123
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DescriptorList<NodeMonitor> Deprecated.as of 1.286.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionall()Returns all the registeredNodeMonitordescriptors.Obtains the monitoring result currently available, or null if no data is available.static List<NodeMonitor> getAll()Obtains all the instances ofNodeMonitors that are alive.Returns the name of the column to be added toComputerSetindex.jelly.Gets the descriptor for this instance.booleanTrue if this monitoring shouldn't mark the agents offline.voidsetIgnored(boolean ignored) Starts updating the data asynchronously.
- 
Field Details- 
LISTAll registeredNodeMonitors.
 
- 
- 
Constructor Details- 
NodeMonitorpublic NodeMonitor()
 
- 
- 
Method Details- 
getColumnCaptionReturns the name of the column to be added toComputerSetindex.jelly.- Returns:
- null to not render a column. The convention is to use capitalization like "Foo Bar Zot".
 
- 
getDescriptorDescription copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)By default looks for a nested class (conventionally named DescriptorImpl) implementingDescriptorand marked withExtension.- Specified by:
- getDescriptorin interface- Describable<NodeMonitor>
 
- 
dataObtains the monitoring result currently available, or null if no data is available.
- 
triggerUpdateStarts updating the data asynchronously. If there's any previous updating activity going on, it'll be interrupted and aborted.- Returns:
- Threadobject that carries out the update operation. You can use this to interrupt the execution or waits for the completion. Always non-null
- Since:
- 1.232
 
- 
getAllObtains all the instances ofNodeMonitors that are alive.- Since:
- 1.187
 
- 
isIgnoredpublic boolean isIgnored()True if this monitoring shouldn't mark the agents offline.Many NodeMonitors implement a logic that if the value goes above/below a threshold, the agent will be marked offline as a preventive measure. This flag controls that.Unlike Publisher, where the absence of an instance indicates that it's disengaged, inNodeMonitorthis boolean flag is used to indicate the disengagement, so that monitors work in opt-out basis.
- 
setIgnored@DataBoundSetter public void setIgnored(boolean ignored) 
- 
allReturns all the registeredNodeMonitordescriptors.
 
-