public abstract class NodeIterator<N extends hudson.model.Node> extends Object implements Iterator<N>, hudson.ExtensionPoint
Nodes in the system, even nodes which are not attached to the main
Jenkins object. If you are holding onto nodes that are not attached to the main Jenkins object
then you need to have an Extension which extends this class and can iterate through your Nodes.| Constructor and Description |
|---|
NodeIterator() |
| Modifier and Type | Method and Description |
|---|---|
static NodeIterator<hudson.model.Node> |
iterator()
Returns a new iterator of all the
Nodes in the system. |
static <N extends hudson.model.Node> |
iterator(Class<N> nodeClass)
Returns a new iterator of all the
Nodes in the system. |
static Iterable<hudson.model.Node> |
nodes()
Adapter to allow easy use from Java 5+ for loops.
|
static <N extends hudson.model.Node> |
nodes(Class<N> nodeClass)
Adapter to allow easy use from Java 5+ for loops.
|
public static NodeIterator<hudson.model.Node> iterator()
Nodes in the system.Nodes in the system.public static Iterable<hudson.model.Node> nodes()
Iterable.public static <N extends hudson.model.Node> NodeIterator<N> iterator(Class<N> nodeClass)
Nodes in the system.Nodes in the system.Copyright © 2004-2013. All Rights Reserved.