curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Drob <mad...@cloudera.com>
Subject Re: Leader election status
Date Thu, 28 Aug 2014 17:10:37 GMT
If you are using LeaderSelector, then each client can check with
hasLeadership().

If you want to the status without consulting all of the clients, there are
getParticipants and getLeader.

Does that make sense?

Mike


On Thu, Aug 28, 2014 at 12:05 PM, Vitalii Tymchyshyn <vit@tym.im> wrote:

> Hello.
>
> I am now going to introduce Zookeeper with Curator into my current project
> and leverage it's Leader Election recipe.
>
> The question is: In monitoring I want to get current election status, e.g.
> who is the leader and who wants to become the leader. Is it possible?
>
> Best regards, Vitalii Tymchyshyn
>

Mime
View raw message