Node
Inherits from: Object
A connection to a remote Maggie node. Create with Node connect: and
use to obtain references to remote processes for distributed messaging.
Example
| node <Node> worker <RemoteProcess> |
node := Node connect: 'localhost:8081'.
node addr "=> 'localhost:8081'"
node ping "=> true/false"
worker := node processNamed: 'worker-1'.
Class Methods
primitives
class connect:
Instance Methods
primitives
primAddr
primNodeID
primPing
primProcessNamed:
uncategorized
addr
Return the address string for this node connection.
nodeID
Return the hex-encoded 32-byte public key (NodeID) of this node.
ping
Check if the remote node is reachable. Returns true or false.
printString
Return a string representation.
processNamed:
Return a RemoteProcess targeting the named process on this node.
The process must be registered with registerAs: on the remote side.