Package akka.cluster

Class CrossDcHeartbeatingState

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class CrossDcHeartbeatingState
    extends java.lang.Object
    implements scala.Product, scala.Serializable
    INTERNAL API
    See Also:
    Serialized Form
    • Constructor Detail

      • CrossDcHeartbeatingState

        public CrossDcHeartbeatingState​(java.lang.String selfDataCenter,
                                        FailureDetectorRegistry<Address> failureDetector,
                                        int nrOfMonitoredNodesPerDc,
                                        scala.collection.immutable.Map<java.lang.String,​scala.collection.SortedSet<Member>> state)
    • Method Detail

      • atLeastInUpState

        public static boolean atLeastInUpState​(Member m)
      • selfDataCenter

        public java.lang.String selfDataCenter()
      • nrOfMonitoredNodesPerDc

        public int nrOfMonitoredNodesPerDc()
      • state

        public scala.collection.immutable.Map<java.lang.String,​scala.collection.SortedSet<Member>> state()
      • shouldActivelyMonitorNodes

        public boolean shouldActivelyMonitorNodes​(java.lang.String selfDc,
                                                  UniqueAddress selfAddress)
        Decides if self node should become active and monitor other nodes with heartbeats. Only the nrOfMonitoredNodesPerDc-oldest nodes in each DC fulfil this role.
        Parameters:
        selfDc - (undocumented)
        selfAddress - (undocumented)
        Returns:
        (undocumented)
      • activeReceivers

        public scala.collection.immutable.Set<UniqueAddress> activeReceivers()
        Lists addresses that this node should send heartbeats to
      • allMembers

        public scala.collection.Iterable<Member> allMembers()
      • dataCenters

        public scala.collection.immutable.Set<java.lang.String> dataCenters()
      • copy$default$1

        public java.lang.String copy$default$1()
      • copy$default$3

        public int copy$default$3()
      • copy$default$4

        public scala.collection.immutable.Map<java.lang.String,​scala.collection.SortedSet<Member>> copy$default$4()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object