All Packages Class Hierarchy This Package Previous Next Index
Class jive.erlang.EApplication
java.lang.Object
|
+----jive.erlang.EApplication
- public class EApplication
- extends Object
EApplication provides an application stub that automatically connects to
the Erlang Jive server.
The class also provides access to some important Jive classes.
- Author:
- Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)
- See Also:
- EApplet
-
EApplication(String, int)
-
This method will initialize the Jive client.
-
connect()
- This method connect the Application to the Erlang Jive server.
-
connected()
- This method checks whether the application is connected to the Erlang
Jive server or not.
-
disconnect()
- This method disconnect the Application from the Erlang Jive server.
-
getESock()
- Returns the ESock object used for socket communication with the
Erlang Jive server.
-
receiver()
- Returns the EReceiver object used for registering objects which should
be called from Erlang.
-
self()
-
Returns the EProcess representing the client's peer Erlang process.
EApplication
public EApplication(String host,
int port) throws JiveIOException
- This method will initialize the Jive client. It must be called by
the subclassing Application's init method.
- Throws: JiveIOException
- If a connection error occurred or the
receiver was uninitialized.
connect
public void connect() throws JiveIOException
- This method connect the Application to the Erlang Jive server.
If a connection is already in place nothing happens.
If a connection cannot be established a JiveIOException is thrown.
- Throws: JiveIOException
- If a connection error occurred or the
receiver was uninitialized.
disconnect
public void disconnect()
- This method disconnect the Application from the Erlang Jive server.
If the Application already is disconnected nothing happens.
connected
public boolean connected()
- This method checks whether the application is connected to the Erlang
Jive server or not.
getESock
public ESock getESock()
- Returns the ESock object used for socket communication with the
Erlang Jive server.
receiver
public EReceiver receiver()
- Returns the EReceiver object used for registering objects which should
be called from Erlang.
self
public EProcess self() throws JiveIOException
- Returns the EProcess representing the client's peer Erlang process.
The peer Erlang process mimics the client in the Erlang system
and forward all messages sent to it (and vice versa).
The self process should be supplied to all Erlang processes wanting
to send information back to the client.
- Throws: JiveIOException
- If the client isn't connected.
All Packages Class Hierarchy This Package Previous Next Index