public interface Connection
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection to the remote node.
|
com.ericsson.otp.erlang.OtpErlangObject |
receiveRPC()
Receive an RPC reply from the remote Erlang node.
|
void |
sendRPC(String mod,
String fun,
com.ericsson.otp.erlang.OtpErlangList args)
Send an RPC request to the remote Erlang node.
|
void close()
void sendRPC(String mod, String fun, com.ericsson.otp.erlang.OtpErlangList args) throws IOException
{ self, { call, Mod, Fun, Args, user } }
Note that this method has unpredicatble results if the remote node is not an Erlang node.
mod
- the name of the Erlang module containing the function to
be called.fun
- the name of the function to call.args
- a list of Erlang terms, to be used as arguments to the
function.IOException
- if the connection is not active or a communication
error occurs.com.ericsson.otp.erlang.OtpErlangObject receiveRPC() throws IOException, com.ericsson.otp.erlang.OtpErlangExit, com.ericsson.otp.erlang.OtpAuthException
{ rex, Term }
IOException
- if the connection is not active or a communication
error occurs.com.ericsson.otp.erlang.OtpErlangExit
- if an exit signal is received from a process on the
peer node.com.ericsson.otp.erlang.OtpAuthException
- if the remote node sends a message containing an
invalid cookie.