Basic HTML version of Foils prepared July 15 1998

Foil 18 JDCE MessageQueue

From Java Distributed Collaborative Environment as a CORBA and RMI Example Tutorial: ITEA HPCC Conference Aberdeen Md. -- July 13 98. by Shrideep Pallickara


The jdceMessageQueue is implemented as a Linked List for faster operations of addition/removal of messages.
The message queue provides for reporting availability of data on the queuebesides providing for returning the queue Contents as a stream of bytes or an array of Strings.
The queue has a in-lined class the QueueEnumerator which provides an Enumeration of the QueueContents.
The queueWidget has pointers to the preceeding Element and the elements successor.
  • class QueueWidget {
  • Object object;
  • QueueWidget prev;
  • QueueWidget next;
  • QueueWidget(Object object,
  • QueueWidget queueWidget1, QueueWidget queueWidget2) {
  • this.object = object;
  • prev = queueWidget1;
  • next = queueWidget2; } }
Besides the operations mentioned above, the queue provides for handling priority messages expressed by the addItemToTop() method.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998