mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
adding a convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7256 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
ae21c04b8d
commit
e0ae626430
1 file changed
+8
@@ -10,6 +10,7 @@ import hudson.util.DescriptorList;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Extension point for managing and monitoring {@link Node}s.
|
||||
@@ -43,6 +44,13 @@ public abstract class NodeMonitor implements ExtensionPoint, Describable<NodeMon
|
||||
return getDescriptor().get(c);
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtains all the instances of {@link NodeMonitor}s that are alive.
|
||||
* @since 1.187
|
||||
*/
|
||||
public static List<NodeMonitor> getAll() {
|
||||
return ComputerSet.get_monitors();
|
||||
}
|
||||
|
||||
/**
|
||||
* All registered {@link NodeMonitor}s.
|
||||
|
||||
Reference in new issue
Block a user