users@shoal.java.net

Re: [Shoal-Users] Leader election algorithm...

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Wed, 30 Apr 2008 12:21:51 -0700

Hi Erik
Shoal's service provider implementation (look in
com.sun.enterprise.jxtmgmt package) that talks to Jxta platform
precisely does what you have described.
Shoal provides APIs to consuming modules to get information on who the
group leader is and if a particular member is a leader (look in
GroupManagementService and GroupHandle).

I will update our Shoal wiki page with the leader election algo today
and send in a pointer here.

Thanks
Shreedhar

Erik Brakkee wrote:
> Hi,
>
>
> I am looking for the easiest way to implement a leader election
> algorithm in shoal.
>
> What I want to achieve is this:
>
> * at one particular time, one node is the leader (master)
> * it doesn't matter which node is the leader
> * if a node is the master and other nodes join or leave the group,
> then it is desirable that the same node remains the master.
>
> Of course, I could use shoal and implement a leader election mechanism
> myself but perhaps there are easier ways using the shoal APIs.
>
> Cheers
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>