Package com.ericsson.otp.erlang
Class OtpLocalNode
- java.lang.Object
- 
- com.ericsson.otp.erlang.AbstractNode
- 
- com.ericsson.otp.erlang.OtpLocalNode
 
 
- 
- All Implemented Interfaces:
- OtpTransportFactory
 
 public class OtpLocalNode extends AbstractNode 
- 
- 
Field SummaryFields Modifier and Type Field Description protected OtpTransportepmdprotected intport
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOtpLocalNode(java.lang.String node)Create a node with the given name and the default cookie.protectedOtpLocalNode(java.lang.String node, OtpTransportFactory transportFactory)Create a node with the given name, transport factory and the default cookie.protectedOtpLocalNode(java.lang.String node, java.lang.String cookie)Create a node with the given name and cookie.protectedOtpLocalNode(java.lang.String node, java.lang.String cookie, OtpTransportFactory transportFactory)Create a node with the given name, cookie and transport factory.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OtpErlangPidcreatePid()Create an Erlangpid.OtpErlangPortcreatePort()Create an Erlangport.OtpErlangRefcreateRef()Create an Erlangreference.protected OtpTransportgetEpmd()Get the Epmd socket.intport()Get the port number used by this node.protected voidsetEpmd(OtpTransport s)Set the Epmd socket after publishing this nodes listen port to Epmd.- 
Methods inherited from class com.ericsson.otp.erlang.AbstractNodealive, cookie, createServerTransport, createTransport, createTransport, host, node, setCookie, toString
 
- 
 
- 
- 
- 
Field Detail- 
portprotected int port 
 - 
epmdprotected OtpTransport epmd 
 
- 
 - 
Constructor Detail- 
OtpLocalNodeprotected OtpLocalNode(java.lang.String node) Create a node with the given name and the default cookie.
 - 
OtpLocalNodeprotected OtpLocalNode(java.lang.String node, OtpTransportFactory transportFactory)Create a node with the given name, transport factory and the default cookie.
 - 
OtpLocalNodeprotected OtpLocalNode(java.lang.String node, java.lang.String cookie)Create a node with the given name and cookie.
 - 
OtpLocalNodeprotected OtpLocalNode(java.lang.String node, java.lang.String cookie, OtpTransportFactory transportFactory)Create a node with the given name, cookie and transport factory.
 
- 
 - 
Method Detail- 
portpublic int port() Get the port number used by this node.- Returns:
- the port number this server node is accepting connections on.
 
 - 
setEpmdprotected void setEpmd(OtpTransport s) Set the Epmd socket after publishing this nodes listen port to Epmd.- Parameters:
- s- The socket connecting this node to Epmd.
 
 - 
getEpmdprotected OtpTransport getEpmd() Get the Epmd socket.- Returns:
- The socket connecting this node to Epmd.
 
 - 
createPidpublic OtpErlangPid createPid() Create an Erlangpid. 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.- Returns:
- an Erlang pid.
 
 - 
createPortpublic OtpErlangPort createPort() Create an Erlangport. 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.- Returns:
- an Erlang port.
 
 - 
createRefpublic OtpErlangRef createRef() Create an Erlangreference. 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.- Returns:
- an Erlang reference.
 
 
- 
 
-