0% found this document useful (0 votes)
238 views3 pages

Overview of JavaSpaces - Java Distributed Computing (Book)

This document provides an overview of JavaSpaces, which is a distributed application paradigm that allows remote agents to interact indirectly by sharing data objects in shared spaces. Clients can write, read, or take entries from the JavaSpace. Access to entries is through basic operations like read, write, take, and notify. Multiple basic operations can be assembled into transactions. JavaSpaces allow multiple clients and spaces to interact in distributed applications.

Uploaded by

poda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
238 views3 pages

Overview of JavaSpaces - Java Distributed Computing (Book)

This document provides an overview of JavaSpaces, which is a distributed application paradigm that allows remote agents to interact indirectly by sharing data objects in shared spaces. Clients can write, read, or take entries from the JavaSpace. Access to entries is through basic operations like read, write, take, and notify. Multiple basic operations can be assembled into transactions. JavaSpaces allow multiple clients and spaces to interact in distributed applications.

Uploaded by

poda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SIGN IN TRY NOW

See everything available through the O’Reilly le Search

Java Distributed Computing by Jim Farley

BUY ON AMAZON

Overview of JavaSpaces
The distributed application paradigm supported by JavaSpaces
is one in which remote agents interact with each other indirectly
through shared data object spaces. Objects are stored in a
JavaSpace in the form of entries. Clients write entries into the
space, read entries from the space, or take entries from the
space, as shown in Figure 3.1.
SIGN IN TRY NOW

Figure C-1. JavaSpaces general architecture

Access to the entries in JavaSpaces is through a small set of ba-


sic operations:

read

Read an entry from the space that matches a


template.

write

Add an entry to the space.

take
Read and remove an entry from the space.
SIGN IN TRY NOW

notify

Send a notification through a given event handler if


entries that match a template are added to the space.
A notification request has a time-out period associ-
ated with it: if a matching entry isn’t added within the
time-out period, the notify request fails and is
dropped from the JavaSpace.

Multiple basic operations can be assembled into transactions


that group basic operations into a single, atomic aggregate
operation.

There can be many clients and many JavaSpaces in a given dis-


tributed application. One client, and even one transaction from
one client, can access multiple JavaSpaces. So instead of one
agent sending a message to another, or invoking a remote
method directly on another object within an agent, agents inter-
act by writing and reading objects in JavaSpaces. ...

Get Java Distributed Computing now with the O’Reilly


learning platform.

You might also like