+ "Member Address : "
+ mUp.member().address().toString());
}
} else if (message instanceof MemberRemoved) {
MemberRemoved mRe = (MemberRemoved) message;
ClusterState.memberLoad.remove(mRe.member().address());
models.utils.LogUtils.printLogNormal("MemberRemoved " + ClusterState.memberLoad.size());
Pattern pattern = Pattern.compile("@.+:");
Matcher matcher = pattern.matcher(mRe.member().address().toString());
if (matcher.find()) {
String url = matcher.group().substring(1, matcher.end()-matcher.start()-1);
String port = mRe.member().address().toString().substring(mRe.member().address().toString().length()-4);
ClusterState.memberStates.get(url + ":" + port).available = false;
}
} else if (message instanceof RestartNode) {
System.out.println("Restart removed nodes : ");