Package org.apache.pekko.cluster.metrics
Class NodeMetrics
java.lang.Object
org.apache.pekko.cluster.metrics.NodeMetrics
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
The snapshot of current sampled health metrics for any monitored process.
Collected and gossipped at regular intervals for dynamic cluster management strategies.
Equality of NodeMetrics is based on its address.
param: address pekko.actor.Address of the node the metrics are gathered at
param: timestamp the time of sampling, in milliseconds since midnight, January 1, 1970 UTC
param: metrics the set of sampled pekko.cluster.metrics.Metric
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNodeMetrics(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics) -
Method Summary
Modifier and TypeMethodDescriptionstatic scala.collection.immutable.Set<Metric>address()static NodeMetricsstatic scala.collection.immutable.Set<Metric>booleanlongscala.collection.immutable.Set<Metric>booleanJava APIinthashCode()merge(NodeMetrics that) Returns the most recent data.scala.Option<Metric>scala.collection.immutable.Set<Metric>metrics()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>booleansameAs(NodeMetrics that) Returns true ifthataddress is the same as thislongtoString()unapply(NodeMetrics x$0) update(NodeMetrics that) Returns the most recent data withEWMAaveraging.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
NodeMetrics
-
-
Method Details
-
$lessinit$greater$default$3
-
apply
public static NodeMetrics apply(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics) -
apply$default$3
-
unapply
public static scala.Option<scala.Tuple3<Address,Object, unapplyscala.collection.immutable.Set<Metric>>> (NodeMetrics x$0) -
address
-
timestamp
public long timestamp() -
metrics
-
merge
Returns the most recent data. -
update
Returns the most recent data withEWMAaveraging. -
metric
-
getMetrics
Java API -
sameAs
Returns true ifthataddress is the same as this -
hashCode
public int hashCode() -
equals
-
copy
public NodeMetrics copy(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics) -
copy$default$1
-
copy$default$2
public long copy$default$2() -
copy$default$3
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
toString
-