}
/* set scores */
for (final Host host : getBrowser().getClusterHosts()) {
final HostInfo hi = host.getBrowser().getHostInfo();
final HostLocation hostLocation = cs.getScore(getService().getCrmId(),
hi.getName(),
Application.RunMode.LIVE);
final HostLocation savedLocation = savedHostLocations.get(hi);
if (Tools.areEqual(hostLocation, savedLocation)) {
if (hostLocation == null) {
savedHostLocations.remove(hi);
} else {
savedHostLocations.put(hi, hostLocation);
}
if (infoPanelOk) {
final Widget wi = scoreComboBoxHash.get(hi);
if (wi != null) {
String score = null;
String op = null;
if (hostLocation != null) {
score = hostLocation.getScore();
op = hostLocation.getOperation();
}
wi.setValue(new StringValue(score));
final JLabel label = wi.getLabel();
final String text = getHostLocationLabel(hi.getName(), op);
label.setText(text);
}
}
}
}
/* set ping constraint */
final HostLocation hostLocation = cs.getPingScore(getService().getCrmId(), Application.RunMode.LIVE);
Value pingOperation = null;
if (hostLocation != null) {
final String op = hostLocation.getOperation();
final String value = hostLocation.getValue();
if ("eq".equals(op) && "0".equals(value)) {
pingOperation = new StringValue("eq0");
} else {
pingOperation = new StringValue(hostLocation.getOperation());
}
}
if (!Tools.areEqual(pingOperation, savedPingOperation)) {
savedPingOperation = pingOperation;
}