ermi.samples.exception
Class SimpleStub

java.lang.Object
  |
  +--EventServer
        |
        +--ermi.samples.exception.SimpleStub
All Implemented Interfaces:
EFilter, ERemote, Simple

public class SimpleStub
extends EventServer
implements Simple, EFilter

See Also:
Serialized Form

Constructor Summary
SimpleStub(java.util.Properties env)
           
SimpleStub(java.util.Properties env, java.lang.String stub)
           
 
Method Summary
 java.lang.String addFilter(java.lang.String p0)
          It changes the subscription of the remote object in order to allow interception.
 void close()
          Removes all subscriptions for this object and releases event service connection.
 java.lang.String concat(java.lang.Integer p0, java.lang.String p1, java.lang.Integer p2)
           
 ermi.ERemote copy()
          Returns a reference to a new stub instance of this remote object.
 boolean equals(java.lang.Object obj)
           
 void eventArrived(java.util.Hashtable evt)
           
 java.lang.String getEdad()
           
 void init()
          Connects to the event service and creates all subscriptions for this object.
 void removeFilter()
          It changes the subscription of the remote object in order to allow interception.
 void removeFilter(java.lang.String p0)
          It changes the subscription of the remote object in order to allow interception.
 void setEdad(java.lang.String p0)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ermi.ERemote
getERef
 

Constructor Detail

SimpleStub

public SimpleStub(java.util.Properties env)
           throws RemoteException

SimpleStub

public SimpleStub(java.util.Properties env,
                  java.lang.String stub)
           throws RemoteException
Method Detail

eventArrived

public void eventArrived(java.util.Hashtable evt)

concat

public java.lang.String concat(java.lang.Integer p0,
                               java.lang.String p1,
                               java.lang.Integer p2)
                        throws RemoteException
Specified by:
concat in interface Simple
RemoteException

setEdad

public void setEdad(java.lang.String p0)
             throws RemoteException
Specified by:
setEdad in interface Simple
RemoteException

getEdad

public java.lang.String getEdad()
                         throws RemoteException
Specified by:
getEdad in interface Simple
RemoteException

addFilter

public java.lang.String addFilter(java.lang.String p0)
                           throws RemoteException
Description copied from interface: EFilter
It changes the subscription of the remote object in order to allow interception. See ERMI architecture for more information

Specified by:
addFilter in interface EFilter
Throws:
RemoteException - - if the connection with the event service fails.

removeFilter

public void removeFilter(java.lang.String p0)
                  throws RemoteException
Description copied from interface: EFilter
It changes the subscription of the remote object in order to allow interception. See ERMI architecture for more information

Specified by:
removeFilter in interface EFilter
Throws:
RemoteException - - if the connection with the event service fails.

removeFilter

public void removeFilter()
                  throws RemoteException
Description copied from interface: EFilter
It changes the subscription of the remote object in order to allow interception. See ERMI architecture for more information

Specified by:
removeFilter in interface EFilter
Throws:
RemoteException - - if the connection with the event service fails.

close

public void close()
           throws RemoteException
Description copied from interface: ERemote
Removes all subscriptions for this object and releases event service connection.
It is highly recommended to call this method on object references that will no longer be used.

Specified by:
close in interface ERemote
Throws:
RemoteException - - if the connection with the event service fails.

init

public void init()
          throws RemoteException
Description copied from interface: ERemote
Connects to the event service and creates all subscriptions for this object.

Specified by:
init in interface ERemote
Throws:
RemoteException - - if the connection with the event service fails.

equals

public boolean equals(java.lang.Object obj)

copy

public ermi.ERemote copy()
                  throws RemoteException
Description copied from interface: ERemote
Returns a reference to a new stub instance of this remote object. This is mainly used in the pass by reference calls to remote objects. This stub is later initialized (init) when is deserialized in the demanding endpoint.

It is mandatory to call this method when a remote server returns an object by reference. See the ERMI documentation for more information about this.

Specified by:
copy in interface ERemote
Throws:
RemoteException - - if the stub cannot be instantiated for any reason (explained in the RemoteException message).