|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.node_monitors.NodeMonitor
@ExportedBean public abstract class NodeMonitor
Extension point for managing and monitoring Node
s.
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.
NodeMonitor
s are persisted via XStream.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
static DescriptorList<NodeMonitor> |
LIST
Deprecated. as of 1.286. Use all() for read access and Extension for registration. |
Constructor Summary | |
---|---|
NodeMonitor()
|
Method Summary | |
---|---|
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 NodeMonitor s 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DescriptorList<NodeMonitor> LIST
all()
for read access and Extension
for registration.NodeMonitor
s.
Constructor Detail |
---|
public NodeMonitor()
Method Detail |
---|
@Exported 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
a.getDescriptor()==b.getDescriptor() must hold.
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()
NodeMonitor
s that are alive.
public boolean isIgnored()
Many NodeMonitor
s 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |