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

Constructor Index

 o EApplication(String, int)
This method will initialize the Jive client.

Method Index

 o connect()
This method connect the Application to the Erlang Jive server.
 o connected()
This method checks whether the application is connected to the Erlang Jive server or not.
 o disconnect()
This method disconnect the Application from the Erlang Jive server.
 o getESock()
Returns the ESock object used for socket communication with the Erlang Jive server.
 o receiver()
Returns the EReceiver object used for registering objects which should be called from Erlang.
 o self()
Returns the EProcess representing the client's peer Erlang process.

Constructors

 o 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.

Methods

 o 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.
 o disconnect
 public void disconnect()
This method disconnect the Application from the Erlang Jive server. If the Application already is disconnected nothing happens.

 o connected
 public boolean connected()
This method checks whether the application is connected to the Erlang Jive server or not.

 o getESock
 public ESock getESock()
Returns the ESock object used for socket communication with the Erlang Jive server.

 o receiver
 public EReceiver receiver()
Returns the EReceiver object used for registering objects which should be called from Erlang.

 o 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