Hi Al,
the MembershipListener should work in your case. Each of your members
should add it. You can play with it using standalone Hazelcast
members. E.g.:
public static void main(String[] args) {
HazelcastInstance hz = Hazelcast.newHazelcastInstance();
hz.getCluster().addMembershipListener(new MembershipListener() {
@Override
public void memberRemoved(MembershipEvent membershipEvent) {
System.out.println("Member removed " + membershipEvent);
}
@Override
public void memberAdded(MembershipEvent membershipEvent) {
System.out.println("Member added " + membershipEvent);
}
});
}
Regards,
-- Josef
> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
hazelcast+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/hazelcast/d917dfe7-514b-4c8d-a359-00f604b09260n%40googlegroups.com.
--
This message contains confidential information and is intended only for the
individuals named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message, which arise as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. -Hazelcast