8.6. Exercises

Exercise 8.1 Draw a picture of the various objects that are part of the distributed event lifecycle, including the space, the event listener, the event, and the event registration. If you have trouble, please review Section 8.3.
Exercise 8.2 Rewrite PingPong from Chapter 5 using distributed events.
Exercise 8.3 Write a relay that forwards messages from one channel to several others (but doesn't delete them from the original).
Exercise 8.4 Write a sieve that forwards messages from several channels to one.
Exercise 8.5 Write a program that tracks the number of all entries written into a space.

Get JavaSpaces™ Principles, Patterns, and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.