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)
-
EProcess(EAtom, EAtom, EList)
- Spawns a new Erlang process and creates a Process class
representing the Erlang Pid.
-
EProcess(int)
-
Create a EProcess wrapper around a given Pid value.
-
EProcess(String, String, EList)
- Spawns a new Erlang process and creates a Process class
representing the Erlang Pid.
-
pack()
-
Packs the Pid value into a byte array.
-
send(EVar)
-
Sends a message to the Erlang Process represented by this EProcess class.
-
setValue(int)
- Sets the internal pid-id value.
-
value()
-
Returns the Pid value representing the Erlang Pid.
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.
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.
EProcess
protected EProcess(int ePid)
- Create a EProcess wrapper around a given Pid value.
Used only by class ESock to create EProcesses when spawning.
value
public int value()
- Returns the Pid value representing the Erlang Pid.
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.
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
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