nodes

Type: NodeDict

The read-only nodes property of the System class contains a reference to all of the nodes currently attached to the system.

Lock environmental object collections with extreme caution, as this can cause hold-ups when processes sign off and on and when nodes initiate and terminate; for example, you should never use the foreach instruction to iterate through an environmental object collection. Instead, create a transient clone of the collection to iterate through.

The code fragment in the following example shows the use of the nodes property.

while size = system.nodes.size do
    process.sleep(2000);
endwhile;