log.debug("Set existing default LB cluster id " + clusterId);
}
defaultLBExists = true;
//get the hostname for this cluster and set it
ClusterContext clusterContext;
try {
clusterContext = CloudControllerServiceClient.getServiceClient().getClusterContext(clusterId);
} catch (RemoteException e) {
log.error("Error occurred in retrieving Cluster Context for default LB ", e);
throw new ADCException(e);
}
if (clusterContext != null) {
cluster.setHostName(clusterContext.getHostName());
if (log.isDebugEnabled()) {
log.debug("Set existing default LB hostname " + clusterContext.getHostName());
}
}
return null;