All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.meitca.concordia.event.EventNotifyImpl


java.lang.Object

   |

   +----java.rmi.server.RemoteObject

           |

           +----java.rmi.server.RemoteServer

                   |

                   +----java.rmi.server.UnicastRemoteObject

                           |

                           +----COM.meitca.concordia.event.EventNotifyImpl


public class EventNotifyImpl
extends UnicastRemoteObject
implements EventPost
EventNotifyImpl is a synchronous implementation of event notification. This class should only be used by non-mobile objects. Agents should use the Agent's makeEventHandler method, with an argument of true.

This class implements the EventPost interface.

The class EventQueueImpl should be used by non-mobile objects if asynchronous notification is required.

See Also:
Agent, EventHandler, EventPost, EventQueueImpl

Constructor Index

 o EventNotifyImpl(EventHandler)
Constructs an EventNotifyImpl.

Method Index

 o getEventHandler()
Returns a reference to the event handler.
 o postEvent(MobileClassWrapper)
An implementation of the EventPost postEvent() method that synchronously invokes the event handler.
 o postEvents(Vector)
An implementation of the EventPost postEvents() method that synchronously invokes the event handler.
 o shutdown()
Shuts down the event handler, making it unusable.

Constructors

 o EventNotifyImpl

 public EventNotifyImpl(EventHandler handler) throws RemoteException

Constructs an EventNotifyImpl.

Parameters:
handler - The associated event handler interface. This interface is typically implemented by the caller, which then passes the this reference.

Methods

 o shutdown

 public synchronized void shutdown()

Shuts down the event handler, making it unusable.

 o postEvent

 public synchronized void postEvent(MobileClassWrapper eventWrapper) throws EventException

An implementation of the EventPost postEvent() method that synchronously invokes the event handler.

Parameters:
eventWrapper - A wrapper for the event to send.
Throws: EventException
If an error occurs posting the event.
 o postEvents

 public synchronized void postEvents(Vector events) throws EventException, IOException

An implementation of the EventPost postEvents() method that synchronously invokes the event handler.

Parameters:
events - A Vector containing wrappers for the events to post.
Throws: EventException
If an error occurs posting the events.
 o getEventHandler

 protected EventHandler getEventHandler()

Returns a reference to the event handler.



All Packages  Class Hierarchy  This Package  Previous  Next  Index