public int compare(ServerName s1, ServerName s2) {
return s1.getServerName().compareTo(s2.getServerName());
}
});
return new ClusterStatus(getClusterId().toString(),
this.serverManager.getOnlineServers(),
this.serverManager.getDeadServers(), this.serverName, backupMasters,
this.assignmentManager.getEntityGroupStates()
.getEntityGroupsInTransition(),
this.loadBalancerTracker.isBalancerOn());