Class ActiveStandbySituationProcessor

  • All Implemented Interfaces:
    org.opennms.alec.processor.api.SituationProcessor, org.opennms.integration.api.v1.coordination.RoleChangeHandler

    public class ActiveStandbySituationProcessor
    extends Object
    implements org.opennms.alec.processor.api.SituationProcessor, org.opennms.integration.api.v1.coordination.RoleChangeHandler
    A situation processor that uses active-standby redundancy. The active member immediately forwards situations while standby members queue situations and listen to make sure the situation was processed by the active. In the event of a switchover the former standby will catch up by forwarding remaining queued situations that were not forwarded by the former active.
    • Method Detail

      • accept

        public void accept​(org.opennms.alec.datasource.api.Situation situation)
        Specified by:
        accept in interface org.opennms.alec.processor.api.SituationProcessor
      • confirm

        public void confirm​(Set<String> reductionKeysInAlarm)
        Specified by:
        confirm in interface org.opennms.alec.processor.api.SituationProcessor
      • handleRoleChange

        public void handleRoleChange​(org.opennms.integration.api.v1.coordination.Role role,
                                     String domain)
        Specified by:
        handleRoleChange in interface org.opennms.integration.api.v1.coordination.RoleChangeHandler