akka.remote
Class HeartbeatHistory
java.lang.Object
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
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 |
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()