users@shoal.java.net

Re: [Shoal-Users] Master

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Tue, 23 Jun 2009 16:05:23 -0700

Shreedhar Ganapathy wrote:
> Use GroupHandle.isGroupLeader() to know 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.
Here's the test source :
http://fisheye5.atlassian.com/browse/~raw,r=1.1/shoal/gms/tests/com/sun/enterprise/shoal/groupleadertest/GroupLeaderTest.java
>
> 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
>>