clusteringMessageTopic = primaryHazelcastInstance.getTopic(HazelcastConstants.CLUSTERING_MESSAGE_TOPIC);
clusteringMessageTopic.addMessageListener(new HazelcastClusterMessageListener(configurationContext));
ITopic<ControlCommand> controlCommandTopic = primaryHazelcastInstance.getTopic(HazelcastConstants.CONTROL_COMMAND_TOPIC);
controlCommandTopic.addMessageListener(new HazelcastControlCommandListener(configurationContext));
final Member localMember = primaryHazelcastInstance.getCluster().getLocalMember();
membershipScheme.setLocalMember(localMember);
org.apache.axis2.clustering.Member carbonLocalMember =
MemberUtils.getLocalMember(primaryDomain, nwConfig.getPublicAddress(), nwConfig.getPort());
log.info("Local member: [" + localMember.getUuid() + "] - " + carbonLocalMember);
MemberUtils.getMembersMap(primaryHazelcastInstance, primaryDomain).put(localMember.getUuid(),
carbonLocalMember);
membershipScheme.joinGroup();
log.info("Cluster initialization completed");
}