Package akka.remote

Class HeartbeatHistory

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

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

      • HeartbeatHistory

        public HeartbeatHistory()
    • Method Detail

      • apply

        public static HeartbeatHistory apply​(int maxSampleSize,
                                             scala.collection.immutable.IndexedSeq<java.lang.Object> intervals,
                                             long intervalSum,
                                             long squaredIntervalSum)
        Holds the heartbeat statistics for a specific node Address. It is capped by the number of samples specified in maxSampleSize.

        The stats (mean, variance, stdDeviation) are not defined for for empty HeartbeatHistory, i.e. throws ArithmeticException.

        Parameters:
        maxSampleSize - (undocumented)
        intervals - (undocumented)
        intervalSum - (undocumented)
        squaredIntervalSum - (undocumented)
        Returns:
        (undocumented)
      • unapply

        public static scala.Option<scala.Tuple4<java.lang.Object,​scala.collection.immutable.IndexedSeq<java.lang.Object>,​java.lang.Object,​java.lang.Object>> unapply​(HeartbeatHistory x$0)
      • maxSampleSize

        public int maxSampleSize()
      • intervals

        public scala.collection.immutable.IndexedSeq<java.lang.Object> intervals()
      • intervalSum

        public long intervalSum()
      • squaredIntervalSum

        public long squaredIntervalSum()
      • mean

        public double mean()
      • variance

        public double variance()
      • stdDeviation

        public double stdDeviation()
      • copy

        public HeartbeatHistory copy​(int maxSampleSize,
                                     scala.collection.immutable.IndexedSeq<java.lang.Object> intervals,
                                     long intervalSum,
                                     long squaredIntervalSum)
      • copy$default$1

        public int copy$default$1()
      • copy$default$2

        public scala.collection.immutable.IndexedSeq<java.lang.Object> copy$default$2()
      • copy$default$3

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

        public long 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