JavaSpaces and TSpaces. Theresa Tamash CDA 5937 November 4, 2002. Outline. Challenges of Distributed Computing Solutions for Distributed Systems Linda Tuplespaces JavaSpaces TSpaces. Challenges of Distributed Computing. Latency – data takes time to get across a network.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
November 4, 2002
How can the Windows or LINUX machines print documents?
There is a physical connection between all computers and the printer, but no logical connection.
JavaSpaces and TSpaces
Developed to be a communication buffer for parallel processing systems.
Use pattern matching to get desired objects from the space.
null values represent wildcards.
A Message object with the content field set to nullwill return any message object.
A Message object with the content field set to “Go Team!” will only return a message object with the content set to that value.
Message template = new Message(); //Content is null
Message result = (Message)space.read(
template, null, Long.MAX_VALUE);
If we had used space.takeinstead, the Entry object would no longer be in the space.
<2.24, “Hello World”, 345>
Template 1: <float, “Hello World”, int> Template 2: <float, string, 345.0>
Both templates use formal fields. By putting the datatype in the template and not specifying a value, the template will match tuples with that datatype in that field.
Seller writes Item tuple to space.
Bidders can register to receive notification when certain types of Items (pink?) are written to the space.
Bidders can take an Item from a space, update the bid, then write it back.
Bidders can query the group of Item tuples to find ones that interest them.
Seller registers to be notified when bidding ends on their Item.