this.instance = instance;
instance.getCluster().addMembershipListener(this);
}
public void memberAdded(MembershipEvent membershipEvent) {
Member member = membershipEvent.getMember();
Member local = instance.getCluster().getLocalMember();
if (local.equals(member)) {
if (synchronizers != null && !synchronizers.isEmpty()) {
Set<Group> groups = groupManager.listLocalGroups();
if (groups != null && !groups.isEmpty()) {
for (Group group : groups) {
for (Synchronizer synchronizer : synchronizers) {