/*
* note that ctime is the time when the condition was known to be true, not the time we're persisting the
* condition log message
*/
if (conditionMessage instanceof ActiveAlertConditionMessage) {
ActiveAlertConditionMessage activeConditionMessage = (ActiveAlertConditionMessage) conditionMessage;
if (alertDefinitionManager.isEnabled(definitionId) == false) {
if (log.isDebugEnabled()) {
log.debug("AlertDefinition[id=" //
+ activeConditionMessage.getAlertConditionId() //
+ "] was already disabled " //
+ "(likely due to recovery logic disablement on earlier messages in this process batch), " //
+ "ignoring " //
+ activeConditionMessage);
}
return result;
}
alertConditionLogManager.updateUnmatchedLogByAlertConditionId(activeConditionMessage.getAlertConditionId(),
activeConditionMessage.getTimestamp(), activeConditionMessage.getValue());
result = alertConditionLogManager.checkForCompletedAlertConditionSet(activeConditionMessage
.getAlertConditionId());
} else if (conditionMessage instanceof InactiveAlertConditionMessage) {
// first do some bookkeeping by removing partially matched condition logs
alertConditionLogManager.removeUnmatchedLogByAlertConditionId(conditionMessage.getAlertConditionId());