The Artima Developer Community
Sponsored Link

Jini Forum
JavaSpaces compute servers

1 reply on 1 page. Most recent reply: Jul 1, 2002 6:36 AM by Nati Shalom

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Cristi

Posts: 9
Nickname: cristiand
Registered: Feb, 2002

JavaSpaces compute servers Posted: Jun 1, 2002 2:50 AM
Reply to this message Reply
Advertisement
Hello, everybody,

I have a question concerning the advantages of using compute servers with JavaSpaces.

The (classical, I think) scenario is: we have a master generating tasks and putting them into a JavaSpace. Several workers wait for tasks, each one taking one task at a time, instantiating it, executing it (calling the task's execute method) and putting the result back into the space. It is all based on the 'Make Room for JavaSpaces Part II' article.

Now let's say that there are only a few types of generated tasks, and the execute method of the task requires parameters, passed by the worker. In order to instantiate the task, the worker must anyway have access to the complete task code (via its codebase), thus the task code is downloaded anyway from a web server.

My question is : what is the advantage of using a JavaSpace for exchanging executable code if the JavaSpace only preserves public fields of the Entry? I understood from JavaSpaces articles that the public fields would act as parameters, or as the data used for computation by the execute method. Is there any use for repeatedly storing the complete task code into the JavaSpace only whith some public fields changed each time, instead of using the downloaded version of the class and passing parameters to the execute method? (and, maybe using the space only for passing parameters)?

I am only troubled beacause what initially seemed to me a very nice way of solving computational-intensive problems, now seems inefficient.

Thank you in advance,
Cristian.


Nati Shalom

Posts: 1
Nickname: nati
Registered: Jul, 2002

Re: JavaSpaces compute servers Posted: Jul 1, 2002 6:36 AM
Reply to this message Reply
Searialisation does not put the code in the space the
code is actually loaded via the classloader.

Flat View: This topic has 1 reply on 1 page
Topic: performance: Jini(RMI) versus UPnP(SOAP/HTTP) Previous Topic   Next Topic Topic: Problems With Java Please Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use