private void configureMembershipScheme(NetworkConfig nwConfig) throws ClusteringFault {
String scheme = getMembershipScheme();
log.info("Using " + scheme + " based membership management scheme");
if (scheme.equals(ClusteringConstants.MembershipScheme.WKA_BASED)) {
membershipScheme = new WKABasedMembershipScheme(parameters, primaryDomain, wkaMembers,
primaryHazelcastConfig);
membershipScheme.init();
// If well-known members are not connected, wait here
WKABasedMembershipScheme wkaBasedMembershipScheme =
(WKABasedMembershipScheme) membershipScheme;
long start = System.currentTimeMillis();
while (!wkaBasedMembershipScheme.areWellKnownMembersAvailable()) {
if (System.currentTimeMillis() - start > 60000) {
log.warn("Waiting for all well-known members to become available");
start = System.currentTimeMillis();
}
try {