Package org.rhq.enterprise.server.alert.engine.jms.model

Examples of org.rhq.enterprise.server.alert.engine.jms.model.ActiveAlertConditionMessage


        /*
         * The triggered alert condition gets stored as a string anyway, so until this is made more flexible we'll just
         * send the string representation of the value for the AbstractCacheElement in the JMS message
         */
        ActiveAlertConditionMessage conditionMessage = new ActiveAlertConditionMessage(alertConditionId, timestamp,
            value.toString(), extraParams);

        ObjectMessage message = session.createObjectMessage(conditionMessage);

        sender.send(message);
View Full Code Here


        /*
         * 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());
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.alert.engine.jms.model.ActiveAlertConditionMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.