ermi.samples.listener
Class SpriteSkel
java.lang.Object
|
+--EventServer
|
+--ermi.samples.listener.SpriteSkel
- All Implemented Interfaces:
- ERemote, Sprite
- Direct Known Subclasses:
- SpriteImpl
- public abstract class SpriteSkel
- extends EventServer
- implements Sprite
- See Also:
- Serialized Form
Constructor Summary |
SpriteSkel(java.util.Properties env)
|
Method Summary |
void |
close()
Removes all subscriptions for this object and releases event service connection. |
ermi.ERemote |
copy()
Returns a reference to a new stub instance of this remote object. |
void |
eventArrived(java.util.Hashtable evt)
|
void |
init()
Connects to the event service and creates all subscriptions for this object. |
void |
triggerSpriteEvent(ermi.samples.listener.SpriteEvent res)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpriteSkel
public SpriteSkel(java.util.Properties env)
throws RemoteException
eventArrived
public void eventArrived(java.util.Hashtable evt)
triggerSpriteEvent
public void triggerSpriteEvent(ermi.samples.listener.SpriteEvent res)
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.
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).