akka.remote
Class HeartbeatHistory

java.lang.Object
  extended by akka.remote.HeartbeatHistory
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class HeartbeatHistory
extends java.lang.Object
implements scala.Product, scala.Serializable

See Also:
Serialized Form

Method Summary
static HeartbeatHistory apply(int maxSampleSize)
          Create an empty HeartbeatHistory, without any history.
 scala.collection.immutable.IndexedSeq<java.lang.Object> intervals()
           
 long intervalSum()
           
 int maxSampleSize()
           
 double mean()
           
 long squaredIntervalSum()
           
 double stdDeviation()
           
 double variance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Method Detail

apply

public static HeartbeatHistory apply(int maxSampleSize)
Create an empty HeartbeatHistory, without any history. Can only be used as starting point for appending intervals. The stats (mean, variance, stdDeviation) are not defined for for empty HeartbeatHistory, i.e. throws AritmeticException.

Parameters:
maxSampleSize - (undocumented)
Returns:
(undocumented)

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()