OxL Reference

method ClusterApi.node

The id of the node called name; on a single node every other id is unreachable.

Example:

oxl✓ checked in CI
fn main() io {
  print(cluster.node("store-2").name)
}
Output
store-2
pub(api) fn node(name: str) -> NodeId

Since. 1.0.0-beta

Parameters

NameType
namestr

Returns

NodeId

Effects

none declared (pure unless the body says otherwise)

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

See also