On Wed, Sep 10, 2014 at 10:17 PM, Eugene Dzhurinsky <[email protected]>
wrote:
> On Thu, Sep 11, 2014 at 01:35:23AM +0530, Piyush Mishra wrote:
> > you can write own notification code like email in MemberRemoved event
> >
> > val Cluster = Cluster(context.system)
> > Cluster.subscribe(self, classOf[MemberRemoved])
> >
> >
> > case MemberRemoved(member, _) =>
> > logger.info("Member is Removed: {}", member.address)
> > // email notification service
>
> Yes, that works perfectly if I need to monitor that the node A is removed
> from
> the cluster, and get this notification on the nodes B and C.
>
> However I would like to have some notification on node A, that it *had
> tried to
> re-join the cluster*, but it was rejected.
>
There is no event for rejected. The seed-node process will retry until it
succeeds. You can subscribe to MemberUp, and if you don't receive that for
your selfAddress within a timeout you can use that as an indication that it
was rejected.
Regards,
Patrik
>
> I haven't found anything about such type of messages in the documentation,
> that's why I'm asking here :(
>
> Thanks!
>
> --
> Eugene N Dzhurinsky
>
--
Patrik Nordwall
Typesafe <http://typesafe.com/> - Reactive apps on the JVM
Twitter: @patriknw
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.