OxL Reference

method ClusterApi.nodes

All nodes the membership knows, this one included (§12.3); dead and departed ones stay listed for a while with their state. Only this node outside a cluster.

Example:

oxl✓ checked in CI
fn main() io {
  print("{cluster.nodes().len()}")
}
Output
1
pub(api) fn nodes() -> List<ClusterMember>

Complexity. O(n) in the number of nodes.

Since. 1.0.0-beta

Returns

List<ClusterMember>

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/node.oxl:299

See also