dermi
Class DermiRemoteInterceptorObject

java.lang.Object
  extended by dermi.EventServer
      extended by dermi.DermiRemoteInterceptorObject
All Implemented Interfaces:
RemoteInterceptorListener, java.io.Serializable

public abstract class DermiRemoteInterceptorObject
extends EventServer
implements RemoteInterceptorListener

This class implements the generic skeleton class for any interceptor object

Version:
1.2
Author:
Carles Pairot
See Also:
Serialized Form

Field Summary
protected  java.util.logging.Logger logger
           
 
Fields inherited from class dermi.EventServer
className, classStore, conn, eref, uid
 
Constructor Summary
DermiRemoteInterceptorObject()
          Local constructor: Entry point to the skeleton class
DermiRemoteInterceptorObject(java.util.Properties env)
          Constructor: Entry point to the skeleton class
 
Method Summary
 void addInterceptor()
          This method adds this instance as interceptor to the UID object
 void close()
          Closes the skeleton
 ERemote copy()
          Returns a stub copy of this class
 void init()
          Initializes the skeleton
 void interceptorEventArrived(java.util.Hashtable evt, java.util.ArrayList interceptors)
          Method executed every time an interception event is received
 void removeInterceptor()
          This method removes this instance as interceptor from the UID object
 void resumeInterception(java.util.Hashtable data, java.util.Vector arguments, java.util.ArrayList interceptors)
          This method resumes the interception process throughout the server object
 
Methods inherited from class dermi.EventServer
dispatchDirectEvent, dispatchDirectEvent, dispatchEvent, dispatchEvent, dispatchEvent, getBytes, getClassStore, getERef, getUID, start, writeERef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient java.util.logging.Logger logger
Constructor Detail

DermiRemoteInterceptorObject

public DermiRemoteInterceptorObject()
Local constructor: Entry point to the skeleton class


DermiRemoteInterceptorObject

public DermiRemoteInterceptorObject(java.util.Properties env)
                             throws RemoteException
Constructor: Entry point to the skeleton class

Parameters:
env - Properties Environment properties
Throws:
RemoteException - When something goes wrong ;-)
Method Detail

interceptorEventArrived

public void interceptorEventArrived(java.util.Hashtable evt,
                                    java.util.ArrayList interceptors)
                             throws RemoteException
Method executed every time an interception event is received

Specified by:
interceptorEventArrived in interface RemoteInterceptorListener
Parameters:
evt - Hashtable Event data (it may be transformed)
interceptors - ArrayList Remaining interceptors
Throws:
RemoteException - If something goes wrong ;-)

resumeInterception

public void resumeInterception(java.util.Hashtable data,
                               java.util.Vector arguments,
                               java.util.ArrayList interceptors)
                        throws RemoteException
This method resumes the interception process throughout the server object

Parameters:
data - Hashtable Event data
arguments - Vector Method arguments
interceptors - ArrayList Remaining interceptors list
Throws:
RemoteException - If something goes wrong ;-)

addInterceptor

public void addInterceptor()
                    throws RemoteException
This method adds this instance as interceptor to the UID object

Throws:
RemoteException - If something goes wrong ;-)

removeInterceptor

public void removeInterceptor()
                       throws RemoteException
This method removes this instance as interceptor from the UID object

Throws:
RemoteException - If something goes wrong ;-)

close

public void close()
           throws RemoteException
Closes the skeleton

Throws:
RemoteException - If something goes wrong ;-)

init

public void init()
          throws RemoteException
Initializes the skeleton

Throws:
RemoteException - If something goes wrong ;-)

copy

public ERemote copy()
             throws RemoteException
Returns a stub copy of this class

Returns:
ERemote The returned stub
Throws:
RemoteException - If something goes wrong ;-)