private static final Log log = LogFactory.getLog(ClusterAdmin.class);
public GroupMember[] getMembers(String groupName) throws Exception {
ClusteringAgent clusteringAgent = getClusteringAgent();
GroupManagementAgent groupManagementAgent =
clusteringAgent.getGroupManagementAgent(groupName);
if (groupManagementAgent == null) {
handleException("No GroupManagementAgent defined for domain " + groupName);
return null;
}
List<Member> members = groupManagementAgent.getMembers();
GroupMember[] groupMembers = new GroupMember[members.size()];
int i = 0;
for (Member member : members) {
GroupMember groupMember = new GroupMember();
groupMember.setHostName(member.getHostName());