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(java.lang.String mod,
java.lang.String fun,
com.ericsson.otp.erlang.OtpErlangList args)
Send an RPC request to the remote Erlang node.
|
void close()
void sendRPC(java.lang.String mod,
java.lang.String fun,
com.ericsson.otp.erlang.OtpErlangList args)
throws java.io.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.java.io.IOException - if the connection is not active or a communication
error occurs.com.ericsson.otp.erlang.OtpErlangObject receiveRPC()
throws java.io.IOException,
com.ericsson.otp.erlang.OtpErlangExit,
com.ericsson.otp.erlang.OtpAuthException
{ rex, Term }
java.io.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.