|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ericsson.otp.erlang.OtpEpmd
Provides methods for registering, unregistering and looking up nodes with the Erlang portmapper daemon (Epmd). For each registered node, Epmd maintains information about the port on which incoming connections are accepted, as well as which versions of the Erlang communication protocolt the node supports.
Nodes wishing to contact other nodes must first request
information from Epmd before a connection can be set up, however
this is done automatically by OtpSelf.connect()
when necessary.
The methods publishPort()
and
unPublishPort()
will fail if an
Epmd process is not running on the localhost. Additionally lookupPort()
will fail if there is no Epmd
process running on the host where the specified node is running.
See the Erlang documentation for information about starting Epmd.
This class contains only static methods, there are no constructors.
Method Summary | |
static int |
lookupPort(AbstractNode node)
Determine what port a node listens for incoming connections on. |
static boolean |
publishPort(OtpLocalNode node)
Register with Epmd, so that other nodes are able to find and connect to it. |
static void |
unPublishPort(OtpLocalNode node)
Unregister from Epmd. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static int lookupPort(AbstractNode node) throws java.io.IOException
public static boolean publishPort(OtpLocalNode node) throws java.io.IOException
node
- the server node that should be registered with Epmd.public static void unPublishPort(OtpLocalNode node)
This method does not report any failures.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |