clojang.node

->str

(->str this)

Return a string representation of the node.

accept

(accept this)

Accept an incoming connection from a remote node.

close

(close this)

Close the node.

close-mbox

(close-mbox this mbox)(close-mbox this mbox reason)

Close the specified mailbox. If not reason is provided, the default reason of ‘normal’ is used.

connect

An alias for the constructor jiface.otp.nodes/connect but one that caches connections based on source and destination node name and allows for symbols and keywords to be used as node names, a closer match for BEAM language nodes, which use atoms for their names.

create-mbox

(create-mbox this)(create-mbox this name)

Create a mailbox that can be used to send and receive messages with other, similar mailboxes and with Erlang processes. If a name name is not provided, the Mbox is simply unnamed.

create-pid

(create-pid this)

Create an Erlang pid.

create-port

(create-port this)

Create an Erlang port.

create-ref

(create-ref this)

Create an Erlang ref.

create-server-transport

(create-server-transport this port-num)

Create instance of OtpServerTransport.

create-transport

(create-transport this addr port-num)

Create instance of OtpTransport.

get-alivename

(get-alivename this)

Get the alivename part of the hostname.

get-default

get-default-name

(get-default-name)

Get the node name for the default node of this JVM instance. First the node’s short name will be checked, and it that’s null, the long name will be used.

get-default-node

(get-default-node)

Get the default node object for the currently running instance of the JVM. In general, one should not need more than one node per JVM.

get-hostname

(get-hostname this)

Get the hostname part of the nodename.

get-long-name

(get-long-name)

Get the OTP-style long name for the default node of this JVM instance.

get-name

(get-name)(get-name node)

Get the name of the given node. If no name is given, return the name of the default node for the currently running JVM.

get-names

(get-names)(get-names node)

An alias for jiface.otp.nodes/get-names that returns a list of a node’s registered mailbox names as a list of strings.

get-node

get-pid

(get-pid this)

Get the Erlang PID that will be used as the sender id in all “anonymous” messages sent by this node.

get-port

(get-port this)

Get the port number used by this node.

get-short-name

(get-short-name)

Get the OTP-style short name for the default node of this JVM instance.

new

(new & args)

An alias for jiface.otp.nodes/node but one that allows for symbols and keywords to be used as node names, a closer match for BEAM language nodes, which use atoms for their names.

peer

(peer & args)

An alias for the constructor jiface.otp.nodes/peer but one that allows for symbols and keywords to be used as node names, a closer match for BEAM language nodes, which use atoms for their names.

ping

(ping node-name)(ping node-name timeout)(ping this-node node-name timeout)

An alias jiface.otp.nodes/ping that also allows for a 2-arity call (with the default timeout set to 1000).

publish-port

(publish-port this)

Make public the information needed by remote nodes that may wish to connect to this one.

register-mbox

(register-mbox this mbox-name mbox)

Register or remove a name for the given mailbox.

register-status-handler

(register-status-handler this handler)

Register interest in certain system events.

self

(self & args)

An alias for for the constructorjiface.otp.nodes/self but one that allows for symbols and keywords to be used as node names, a closer match for BEAM language nodes, which use atoms for their names.

set-flags

(set-flags this flags)

unpublish-port

(unpublish-port this)

Unregister the server node’s name and port number from the Erlang port mapper, thus preventing any new connections from remote nodes.

whereis

(whereis & args)

An alias for jiface.otp.nodes/whereis that also allows for the mailbox name argument to be a symbol, keyword, or string.