try {
// disables cluster if target is a cluster
if (isCluster(target)) {
//get the cluster config
ClusterConfig cRef = mDomainConfig.getClusterConfigMap().get(target);
if (cRef == null) {
mLogger.log(Level.FINEST," server " + target +
" does not exist in any cluster in the domain");
String msg = formatter.format(resBundle.getString("ServerNotDefined"),
target);
throw new MBeanException(new RuntimeException(msg));
}
//iterate through all the servers in the cluster
for(ServerRefConfig sRef : cRef.getServerRefConfigMap().values()){
//set lb-enabled flag and the timeout with error checks
setLBEnabled(sRef, status, timeout, target, ignore);
}
} else { // target is a server
ServerRefConfig sRef = null;