Ejemplo n.º 1
0
 /**
  * memberDisappeared gets invoked by the interceptor below the channel and the channel will
  * broadcast it to the membership listeners
  *
  * @param member Member - the member that left or crashed
  */
 @Override
 public void memberDisappeared(Member member) {
   // notify upwards
   for (int i = 0; i < membershipListeners.size(); i++) {
     MembershipListener membershipListener = (MembershipListener) membershipListeners.get(i);
     if (membershipListener != null) membershipListener.memberDisappeared(member);
   }
 }
 /**
  * memberAdded gets invoked by the interceptor below the channel and the channel will broadcast it
  * to the membership listeners
  *
  * @param member Member - the new member
  */
 @Override
 public void memberAdded(Member member) throws RemoteException, RemoteException {
   // notify upwards
   for (int i = 0; i < membershipListeners.size(); i++) {
     MembershipListener membershipListener = (MembershipListener) membershipListeners.get(i);
     if (membershipListener != null) membershipListener.memberAdded(member);
   }
 }
Ejemplo n.º 3
0
 /**
  * Callback from the impl when a new member has been received
  *
  * @param member The member
  */
 @Override
 public void memberDisappeared(Member member) {
   if (listener != null) listener.memberDisappeared(member);
 }
Ejemplo n.º 4
0
 @Override
 public void memberAdded(Member member) {
   if (listener != null) listener.memberAdded(member);
 }