users@shoal.java.net

Re: [Shoal-Users] Master

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Tue, 23 Jun 2009 15:56:50 -0700

Use GroupHandle.isGroupLeader() if you are the master
Use GroupHandle.getGroupLeader() to get the identity of master.

Caveats: During startup there are timing considerations to take into
account for these calls to have the right group leader.
See GroupLeaderTest for a reference to the timing issue.

That said, we are testing a notification that will inform a GMS client
when master is selected in the group. Look for Shoal issue 50
<https://shoal.dev.java.net/issues/show_bug.cgi?id=50>

hth
Shreedhar

Kaveh Ghahremani wrote:
> Hello,
>
> How can you tell if you are the master?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>