Class FD_ALL3


  • public class FD_ALL3
    extends FailureDetection
    Failure detection based on simple heartbeat protocol. Every member periodically (interval ms) multicasts a heartbeat. Every member maintains a table of all members (minus itself) and a bitmap with timeout/interval bits, initially all set to 1. On each interval, the TimeoutChecker task advances the index and sets the bit at the index to 0.
    When all bits are 0, a member will be suspected.
    On reception of a message or heartbeat from P, P's bitmap at index is set to 1.
    JIRA: https://issues.redhat.com/browse/JGRP-2451
    Version:
    5.0.0
    Author:
    Bela Ban
    • Field Detail

      • num_bits

        protected int num_bits
    • Constructor Detail

      • FD_ALL3

        public FD_ALL3()
    • Method Detail

      • printTimestamps

        public java.lang.String printTimestamps()
      • init

        public void init()
                  throws java.lang.Exception
        Description copied from class: Protocol
        Called after instance has been created (null constructor) and before protocol is started. Properties are already set. Other protocols are not yet connected and events cannot yet be sent.
        Overrides:
        init in class FailureDetection
        Throws:
        java.lang.Exception - Thrown if protocol cannot be initialized successfully. This will cause the ProtocolStack to fail, so the channel constructor will throw an exception
      • _printTimestamps

        protected java.lang.String _printTimestamps()