users@shoal.java.net

Re: [Shoal-Users] Message serialization question

From: <mbien_at_fh-landshut.de>
Date: Mon, 06 Oct 2008 15:53:03 +0200

sorry for my late reply,

Zitat von Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>:

>
>> Hi,
>>
>> i had almost the same problem in FishFarm i just called the
>> solution distributed-classloader instead of peer-classloader :-).
>>
>> FishFarm has worker nodes which steal work from overstrained other
>> nodes executing computational expensive tasks (@see jsr166y). This
>> means that the overstrained node (currently executing the task)
>> knows the resources which are required from the idle node anyway
>> (since he was already executing the task...).
>>
>> solution is obvious... ask friendly for resources if you need them
>> after stealing a task.
>>
>> DistributableObject (ala plain old MarshalledObject, just simpler
>> and fancier):
>> https://fishfarm.dev.java.net/source/browse/fishfarm/trunk/FishFarm/src/net/java/fishfarm/DistributeableObject.java?rev=183&view=markup
>> GridResourceLoader:
>> https://fishfarm.dev.java.net/source/browse/fishfarm/trunk/FishFarm/src/net/java/fishfarm/GridResourceLoader.java?rev=183&view=markup
>> GridClassLoader:
>> https://fishfarm.dev.java.net/source/browse/fishfarm/trunk/FishFarm/src/net/java/fishfarm/lang/ExtendableClassloader.java?rev=183&view=markup
>> ResourceRequestHandler:
>> https://fishfarm.dev.java.net/source/browse/fishfarm/trunk/FishFarm/src/net/java/fishfarm/ResourceRequestHandler.java?rev=174&view=markup
>> usage:
>> register ResourceRequestHandler
>> wrap object in DistributableObject, serialize, send byte[],
>>
>> receive byte[], deserialize
>> obj.get(gridclassloader).
>>
>> done
>>
>> keep in mind FishFarm is GPL+cp ex, i don't want that you get
>> problems with your employee... (refactor, rename it etc ;-) )
>>
>> best regards,
>>
>> michael
> We are always looking for contributions. It would greatly help to have
> some form of these in Shoal as well. Most welcome if you can contribute.

sure why not.

I am just not sure if my approach fitts well to shoal because of the
missing resource versioning. An updated node can easyly tear down
other nodes.

but of course I have nothing against a contribution in general.

regards,

michael