OxL Reference

fn nodes

All nodes the membership knows, this one included, with their state ("alive", "suspect", "dead", "left").

Example:

oxl✓ checked in CI
use std.cluster

fn main() io {
  for m in cluster.nodes() {
    print("{m.state} {m.isSelf}")
  }
}
Output
alive true
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/cluster/cluster.oxl:70

See also