|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdermi.EventServer
public class EventServer
This is an utility class for skeletons and stubs (both inherit from EventServer). It handles event service connections, disconnections, event dispatching, exception wrapping, and stub class requests. It is internally used by Dermi, so IT IS NOT AIMED FOR END USERS.
Field Summary | |
---|---|
protected java.lang.String |
className
|
protected java.lang.String |
classStore
|
protected Session |
conn
|
protected java.util.Properties |
eref
|
protected java.lang.String |
uid
|
Constructor Summary | |
---|---|
EventServer()
|
|
EventServer(java.util.Properties env)
EventServer constructor |
Method Summary | |
---|---|
void |
dispatchDirectEvent(java.util.Hashtable evt)
Dispatches an event directly without using the event service |
void |
dispatchDirectEvent(java.util.Hashtable evt,
java.io.Serializable params)
Dispatches an event directly without using the event service |
void |
dispatchEvent(java.util.Hashtable evt)
Dispatches an event whose main content is embedded on a hash table |
void |
dispatchEvent(java.util.Hashtable evt,
byte[] data)
Dispatches an event whose main content is a byte array |
void |
dispatchEvent(java.util.Hashtable evt,
java.io.Serializable data)
Dispatches an event whose main content is a serializable object |
byte[] |
getBytes(java.lang.String filename)
Gets an array of bytes from a file |
java.lang.String |
getClassStore()
This method returns the class store |
java.util.Properties |
getERef()
Returns the object's reference |
java.lang.String |
getUID()
Return object's unique identifier |
protected void |
start(java.util.Properties env)
|
void |
writeERef(java.lang.String fileName)
Writes this object's reference to a properties file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String uid
protected java.lang.String classStore
protected java.lang.String className
protected java.util.Properties eref
protected transient Session conn
Constructor Detail |
---|
public EventServer()
public EventServer(java.util.Properties env) throws RemoteException
env
- Properties Environment properties
RemoteException
- If something goes wrong ;-)Method Detail |
---|
protected void start(java.util.Properties env) throws RemoteException
RemoteException
public void dispatchEvent(java.util.Hashtable evt, byte[] data) throws RemoteException
evt
- Hashtable Event datadata
- byte[] Byte array
RemoteException
- If something goes wrong ;-)public void dispatchEvent(java.util.Hashtable evt, java.io.Serializable data) throws RemoteException
evt
- Hashtable Event datadata
- Serializable Object
RemoteException
- If something goes wrong ;-)public void dispatchEvent(java.util.Hashtable evt) throws RemoteException
evt
- Hashtable Event data
RemoteException
- If something goes wrong ;-)public void dispatchDirectEvent(java.util.Hashtable evt, java.io.Serializable params) throws RemoteException
evt
- Hashtable Event dataparams
- Serializable Object
RemoteException
- If something goes wrong ;-)public void dispatchDirectEvent(java.util.Hashtable evt) throws RemoteException
evt
- Hashtable Event data
RemoteException
- If something goes wrong ;-)public java.lang.String getUID()
public void writeERef(java.lang.String fileName)
fileName
- String Properties file namepublic java.util.Properties getERef()
public byte[] getBytes(java.lang.String filename) throws java.io.IOException
filename
- String File name
java.io.IOException
- If something goes wrong ;-)public java.lang.String getClassStore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |