if ((!newEnabled.equals(oldEnabled)) && (spr != null)) {
handleLevelChange(propName, newEnabled);
}
}
else if (event.getSource() instanceof ContainerMonitoring) {
ContainerMonitoring cm = (ContainerMonitoring)event.getSource();
String newEnabled = newVal.toString().toUpperCase(Locale.ENGLISH);
String oldEnabled = (oldVal == null) ? "OFF" : oldVal.toString().toUpperCase(Locale.ENGLISH);
if (logger.isLoggable(Level.FINE))
logger.log(Level.FINE, "levelChangeEventReceived",
new Object[]{propName, newEnabled, oldEnabled});
if ((!newEnabled.equals(oldEnabled)) && (spr != null)) {
handleLevelChange(cm.getName(), newEnabled);
}
}
else if(event.getSource() instanceof MonitoringService) {
// we don't want to get fooled because config allows ANY string.
// e.g. "false" --> "foo" --> "fals" are all NOT changes!