@ExportedBean public abstract class NodeMonitor extends Object implements ExtensionPoint, Describable<NodeMonitor>
Nodes.
ComputerSet index.jelly to render a column.
The NodeMonitor instance is accessible through the "from" variable.
Also see getColumnCaption().
http://server/hudson/computer/configure.
Used for configuring the threshold for taking nodes offline.
NodeMonitors are persisted via XStream.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static DescriptorList<NodeMonitor> |
LIST
|
| Constructor and Description |
|---|
NodeMonitor() |
| Modifier and Type | Method and Description |
|---|---|
static DescriptorExtensionList<NodeMonitor,Descriptor<NodeMonitor>> |
all()
Returns all the registered
NodeMonitor descriptors. |
Object |
data(Computer c)
Obtains the monitoring result currently available, or null if no data is available.
|
static List<NodeMonitor> |
getAll()
Obtains all the instances of
NodeMonitors that are alive. |
String |
getColumnCaption()
Returns the name of the column to be added to
ComputerSet index.jelly. |
AbstractNodeMonitorDescriptor<?> |
getDescriptor()
Gets the descriptor for this instance.
|
boolean |
isIgnored()
True if this monitoring shouldn't mark the slaves offline.
|
void |
setIgnored(boolean ignored) |
Thread |
triggerUpdate()
Starts updating the data asynchronously.
|
@Deprecated public static final DescriptorList<NodeMonitor> LIST
NodeMonitors.@Exported @CheckForNull public String getColumnCaption()
ComputerSet index.jelly.public AbstractNodeMonitorDescriptor<?> getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass() then by default
a.getDescriptor() == b.getDescriptor() as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor in interface Describable<NodeMonitor>public Object data(Computer c)
public Thread triggerUpdate()
Thread object that carries out the update operation.
You can use this to interrupt the execution or waits for the completion.
Always non-nullpublic static List<NodeMonitor> getAll()
NodeMonitors that are alive.public boolean isIgnored()
Many NodeMonitors implement a logic that if the value goes above/below
a threshold, the slave 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,
in NodeMonitor this boolean flag is used to indicate the disengagement, so that
monitors work in opt-out basis.
public void setIgnored(boolean ignored)
public static DescriptorExtensionList<NodeMonitor,Descriptor<NodeMonitor>> all()
NodeMonitor descriptors.Copyright © 2019. All rights reserved.