public void addMembershipListener(MembershipListener listener){
  membershipListeners.add(listener);
}

public void addMembershipListener ( MembershipListener listener ) { membershipListeners . add ( listener ) ; }
registers a listener that receives call backs when a member joins or leaves the distributed system .
