Re: Class dependency problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 19 Jul 2006 10:21:37 +0100, Patrick May wrote:
"Kenneth P. Turvey" <kt-usenet@squeakydolphin.com> writes:
I want to be able to programmaticly offload a calculation to another
machine. I would like to be able to send the machine a serialized class
and have it take a look at the class and request any other classes it
might need but can't resolve locally. That's the idea anyway.
Look into Jini (http://www.jini.org) and the JavaSpace service in
particular. It will do exactly what you want.
Artima has a series of articles from around 2000 that explain the
basics (http://www.artima.com/jini/jiniology/js1.html) or you can just
Google for '"compute server" jini javaspace'.
I've read through this and I don't really think it addresses the problem
that I'm looking at now. It may be that it is easily addressed, but I
just don't see how at this time.
The problem is that I would like the "Master" from the compute server to
be able to connect to the space and put a bunch of tasks in that it would
like the "Worker" nodes to compute. Then the "Master" should be able to
disconnect and be turned off.
At some later point in time I would like the "Worker" to be able to
connect and complete one of the tasks added by the "Master". From what
I've read about the compute farm using JavaSpaces, it doesn't look like
this model works. It sounds like the "Master" must be connected so that
the "Workers" can get the classes they need to perform the tasks.
I hope I'm making this clear.
The problem is that by the time the worker node gets to doing the task, I
would like the master node to be disconnected, turned off, doing something
else. At some later time (or date) the master node would reconnect and
retrieve its results.
It seems that in order to do this the master would have to be able to
identify exactly which classes will be needed by the worker. I don't
really see how this is done offline.
Any suggestions would be greatly appreciated.
Thanks,
- --
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEyZZ4i2ZgbrTULjoRArebAJ0bb034vlBP7H8dOIUhcEmaeRc+vwCglkG3
ZKIFjt46F1+GJycuCwIXhfE=
=TVEz
-----END PGP SIGNATURE-----