All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jive.erlang.EProcess

java.lang.Object
   |
   +----jive.erlang.EVar
           |
           +----jive.erlang.EProcess

public class EProcess
extends EVar
EProcess is a class that encapsulates an Erlang Pid. The class will mediate messages to the real Erlang Pid at the Erlang side.

Author:
Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)

Constructor Index

 o EProcess(EAtom, EAtom, EList)
Spawns a new Erlang process and creates a Process class representing the Erlang Pid.
 o EProcess(int)
Create a EProcess wrapper around a given Pid value.
 o EProcess(String, String, EList)
Spawns a new Erlang process and creates a Process class representing the Erlang Pid.

Method Index

 o pack()
Packs the Pid value into a byte array.
 o send(EVar)
Sends a message to the Erlang Process represented by this EProcess class.
 o setValue(int)
Sets the internal pid-id value.
 o value()
Returns the Pid value representing the Erlang Pid.

Constructors

 o EProcess
 public EProcess(String module,
                 String name,
                 EList params) throws JiveSecurityException, JiveIOException, JiveException
Spawns a new Erlang process and creates a Process class representing the Erlang Pid.

Throws: JiveSecurityException
is thrown if a security violation occurred.
Throws: JiveIOException
is thrown if a communication error occurred.
Throws: JiveException
is thrown with an error text given by the server.
 o EProcess
 public EProcess(EAtom module,
                 EAtom name,
                 EList params) throws JiveSecurityException, JiveIOException, JiveException
Spawns a new Erlang process and creates a Process class representing the Erlang Pid.

Throws: JiveSecurityException
is thrown if a security violation occurred.
Throws: JiveIOException
is thrown if a communication error occurred.
Throws: JiveException
is thrown with a error text given by the server.
 o EProcess
 protected EProcess(int ePid)
Create a EProcess wrapper around a given Pid value. Used only by class ESock to create EProcesses when spawning.

Methods

 o value
 public int value()
Returns the Pid value representing the Erlang Pid.

 o send
 public void send(EVar data) throws JiveIOException
Sends a message to the Erlang Process represented by this EProcess class.

Throws: JiveIOException
if a connection error occurred.
 o pack
 public byte[] pack()
Packs the Pid value into a byte array. Used when sending the Pid to an Erlang server.

Overrides:
pack in class EVar
 o setValue
 protected void setValue(int ePid)
Sets the internal pid-id value. Only used by EReceiver to reuse the self-pid object with different internal pid-id values.


All Packages  Class Hierarchy  This Package  Previous  Next  Index