public class OtpLocalNode extends AbstractNode
Modifier and Type | Field | Description |
---|---|---|
protected java.net.Socket |
epmd |
|
protected int |
port |
Modifier | Constructor | Description |
---|---|---|
protected |
OtpLocalNode() |
|
protected |
OtpLocalNode(java.lang.String node) |
Create a node with the given name and the default cookie.
|
protected |
OtpLocalNode(java.lang.String node,
java.lang.String cookie) |
Create a node with the given name and cookie.
|
Modifier and Type | Method | Description |
---|---|---|
OtpErlangPid |
createPid() |
Create an Erlang
pid . |
OtpErlangPort |
createPort() |
Create an Erlang
port . |
OtpErlangRef |
createRef() |
Create an Erlang
reference . |
protected java.net.Socket |
getEpmd() |
Get the Epmd socket.
|
int |
port() |
Get the port number used by this node.
|
protected void |
setEpmd(java.net.Socket s) |
Set the Epmd socket after publishing this nodes listen port to Epmd.
|
protected OtpLocalNode()
protected OtpLocalNode(java.lang.String node)
protected OtpLocalNode(java.lang.String node, java.lang.String cookie)
public int port()
protected void setEpmd(java.net.Socket s)
s
- The socket connecting this node to Epmd.protected java.net.Socket getEpmd()
public OtpErlangPid createPid()
pid
. Erlang pids are based upon
some node specific information; this method creates a pid using the
information in this node. Each call to this method produces a unique pid.public OtpErlangPort createPort()
port
. Erlang ports are based upon
some node specific information; this method creates a port using the
information in this node. Each call to this method produces a unique
port. It may not be meaningful to create a port in a non-Erlang
environment, but this method is provided for completeness.public OtpErlangRef createRef()
reference
. Erlang references are
based upon some node specific information; this method creates a
reference using the information in this node. Each call to this method
produces a unique reference.