Package akka.remote
Class HeartbeatHistory
- java.lang.Object
-
- akka.remote.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 Summary
Constructors Constructor Description HeartbeatHistory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HeartbeatHistory
$colon$plus(long interval)
static HeartbeatHistory
apply(int maxSampleSize)
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.boolean
canEqual(java.lang.Object x$1)
HeartbeatHistory
copy(int maxSampleSize, scala.collection.immutable.IndexedSeq<java.lang.Object> intervals, long intervalSum, long squaredIntervalSum)
int
copy$default$1()
scala.collection.immutable.IndexedSeq<java.lang.Object>
copy$default$2()
long
copy$default$3()
long
copy$default$4()
boolean
equals(java.lang.Object x$1)
int
hashCode()
scala.collection.immutable.IndexedSeq<java.lang.Object>
intervals()
long
intervalSum()
int
maxSampleSize()
double
mean()
int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
long
squaredIntervalSum()
double
stdDeviation()
java.lang.String
toString()
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)
double
variance()
-
-
-
Method Detail
-
apply
public static HeartbeatHistory apply(int maxSampleSize)
-
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 inmaxSampleSize
.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()
-
$colon$plus
public final HeartbeatHistory $colon$plus(long interval)
-
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 interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-