|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ericsson.otp.ic.Environment
public class Environment
The Environment class handles communication setup and stub state. The methods of this class are specially designed for the generated stubs. This class must be used when designing asynchronous message passing.
Constructor Summary | |
---|---|
Environment()
Server skeleton side constructor. |
|
Environment(com.ericsson.otp.erlang.OtpConnection _connection,
java.lang.Object _Server)
Client stub side constructor. |
|
Environment(com.ericsson.otp.erlang.OtpSelf _Self,
com.ericsson.otp.erlang.OtpPeer _Peer,
java.lang.Object _Server)
Client stub side constructor. |
|
Environment(java.lang.String _SelfNode,
java.lang.String _PeerNode,
java.lang.String _Cookie,
java.lang.Object _Server)
Client stub side constructor. |
Method Summary | |
---|---|
com.ericsson.otp.erlang.OtpErlangPid |
caller_pid()
Caller identity accessor. |
void |
client_stop_server()
|
void |
connect()
Client stub side connector. |
void |
disconnect()
Closes the established connection. |
com.ericsson.otp.erlang.OtpInputStream |
getIs()
Input Stream accessor. |
com.ericsson.otp.erlang.OtpOutputStream |
getOs()
Output Stream accessor. |
com.ericsson.otp.erlang.OtpErlangPid |
getScaller()
Server skeleton side client (caller) pid accessor. |
com.ericsson.otp.erlang.OtpErlangRef |
getSref()
Server skeleton side client call reference accessor. |
void |
init()
Private variable initialization. |
boolean |
isStopped()
Server stop request controller. |
void |
receive()
Client message receiver. |
void |
receive(com.ericsson.otp.erlang.OtpConnection _connection)
Universal message receiver. |
com.ericsson.otp.erlang.OtpErlangRef |
received_ref()
Received message reference accessor. |
void |
reconnect()
Reconnects a client by closing existing connection and connecting. |
void |
send()
Client side message sender. |
void |
server_stop_server()
|
java.lang.Object |
server()
Server RegName/OtpErlangPid accessor. |
void |
uHead()
Decodes the message head from existing stream. |
void |
uHead(com.ericsson.otp.erlang.OtpInputStream _is)
Decodes the message head and writes over input stream. |
int |
uLabel(java.util.Dictionary _operations)
Operation label accessor. |
boolean |
validOp(java.util.Dictionary _operations)
Operation controller. |
void |
write_client_pid()
Client Pid Encoder. |
void |
write_client_ref()
Client Ref Encoder. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Environment(com.ericsson.otp.erlang.OtpSelf _Self, com.ericsson.otp.erlang.OtpPeer _Peer, java.lang.Object _Server) throws java.lang.Exception
java.lang.Exception
public Environment(java.lang.String _SelfNode, java.lang.String _PeerNode, java.lang.String _Cookie, java.lang.Object _Server) throws java.lang.Exception
java.lang.Exception
public Environment(com.ericsson.otp.erlang.OtpConnection _connection, java.lang.Object _Server) throws java.lang.Exception
java.lang.Exception
public Environment() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void connect() throws java.lang.Exception
java.lang.Exception
public void reconnect() throws java.lang.Exception
java.lang.Exception
public void disconnect()
public void send() throws java.lang.Exception
java.lang.Exception
public void receive() throws java.lang.Exception
java.lang.Exception
public void receive(com.ericsson.otp.erlang.OtpConnection _connection) throws java.lang.Exception
java.lang.Exception
public java.lang.Object server()
public com.ericsson.otp.erlang.OtpErlangPid caller_pid()
public com.ericsson.otp.erlang.OtpErlangRef received_ref()
public void write_client_pid()
public void write_client_ref()
public com.ericsson.otp.erlang.OtpOutputStream getOs()
public com.ericsson.otp.erlang.OtpInputStream getIs()
public com.ericsson.otp.erlang.OtpErlangPid getScaller()
public com.ericsson.otp.erlang.OtpErlangRef getSref()
public void uHead() throws java.lang.Exception
java.lang.Exception
public void uHead(com.ericsson.otp.erlang.OtpInputStream _is) throws java.lang.Exception
java.lang.Exception
public int uLabel(java.util.Dictionary _operations)
public boolean validOp(java.util.Dictionary _operations)
public boolean isStopped()
public void client_stop_server() throws java.lang.Exception
java.lang.Exception
public void server_stop_server()
public void init()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |