Nexus API Reference

NodeAddress
in package

Read onlyYes
FinalYes
Tags
psalm-api

A node's cluster-wide identity: cluster / datacenter / application / node. Each segment is validated to a URL-safe charset at construction, and toPathPrefix() is a lossless join — so the path-prefix (which is the identity key used across membership, the endpoint registry, the failure detector, and the gossip wire) is INJECTIVE: two distinct NodeAddress values can never alias to the same identity. (The previous lossy normalize() mapped e.g. "a b" and "a-b" to one prefix, a collision hazard in a membership protocol.)

Table of Contents

Properties

$application  : string
$cluster  : string
$datacenter  : string
$node  : string

Methods

__construct()  : mixed
forWorker()  : self
temporaryAskReplyPath()  : ActorPath
toPathPrefix()  : string

Properties

Methods

__construct()

public __construct(string $cluster, string $datacenter, string $application, string $node) : mixed
Parameters
$cluster : string
$datacenter : string
$application : string
$node : string
Tags
throws
InvalidArgumentException

If any segment is empty or contains a character outside the URL-safe set [a-zA-Z0-9_.-] (see SEGMENT_PATTERN).

forWorker()

public static forWorker(int $workerId) : self
Parameters
$workerId : int
Return values
self

toPathPrefix()

public toPathPrefix() : string
Return values
string
On this page

Search results