> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>