ClusteringAgent clusteringAgent = getClusteringAgent();
Set<String> groupNames = clusteringAgent.getDomains();
for (String groupName : groupNames) {
GroupManagementAgent managementAgent =
clusteringAgent.getGroupManagementAgent(groupName);
managementAgent.send(cmd);
}
}
private GroupManagementAgent getGroupManagementAgent(String groupName) throws AxisFault {
ClusteringAgent clusteringAgent = getClusteringAgent();