| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ericsson.otp.erlang.AbstractNode
com.ericsson.otp.erlang.OtpLocalNode
public class OtpLocalNode
This class represents local node types. It is used to group the node types
 OtpNode and OtpSelf.
| Field Summary | |
|---|---|
| protected  OtpTransport | epmd | 
| protected  int | port | 
| Constructor Summary | |
|---|---|
| protected  | OtpLocalNode(java.lang.String node)Create a node with the given name and the default cookie. | 
| protected  | OtpLocalNode(java.lang.String node,
             OtpTransportFactory transportFactory)Create a node with the given name, transport factory and the default cookie. | 
| protected  | OtpLocalNode(java.lang.String node,
             java.lang.String cookie)Create a node with the given name and cookie. | 
| protected  | OtpLocalNode(java.lang.String node,
             java.lang.String cookie,
             OtpTransportFactory transportFactory)Create a node with the given name, cookie and transport factory. | 
| Method Summary | |
|---|---|
|  OtpErlangPid | createPid()Create an Erlang pid. | 
|  OtpErlangPort | createPort()Create an Erlang port. | 
|  OtpErlangRef | createRef()Create an Erlang reference. | 
| protected  OtpTransport | getEpmd()Get the Epmd socket. | 
|  int | port()Get the port number used by this node. | 
| protected  void | setEpmd(OtpTransport s)Set the Epmd socket after publishing this nodes listen port to Epmd. | 
| Methods inherited from class com.ericsson.otp.erlang.AbstractNode | 
|---|
| alive, cookie, createServerTransport, createTransport, createTransport, host, node, setCookie, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected int port
protected OtpTransport epmd
| Constructor Detail | 
|---|
protected OtpLocalNode(java.lang.String node)
protected OtpLocalNode(java.lang.String node,
                       OtpTransportFactory transportFactory)
protected OtpLocalNode(java.lang.String node,
                       java.lang.String cookie)
protected OtpLocalNode(java.lang.String node,
                       java.lang.String cookie,
                       OtpTransportFactory transportFactory)
| Method Detail | 
|---|
public int port()
protected void setEpmd(OtpTransport s)
s - The socket connecting this node to Epmd.protected OtpTransport 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.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||