Package akka.cluster.metrics
Class NodeMetrics
- java.lang.Object
-
- akka.cluster.metrics.NodeMetrics
-
- All Implemented Interfaces:
java.io.Serializable,scala.Equals,scala.Product
public final class NodeMetrics extends java.lang.Object implements scala.Product, java.io.SerializableThe 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
Addressof 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 sampledMetric- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeMetrics(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static scala.collection.immutable.Set<Metric>$lessinit$greater$default$3()Addressaddress()static NodeMetricsapply(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)static scala.collection.immutable.Set<Metric>apply$default$3()booleancanEqual(java.lang.Object x$1)NodeMetricscopy(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)Addresscopy$default$1()longcopy$default$2()scala.collection.immutable.Set<Metric>copy$default$3()booleanequals(java.lang.Object obj)java.lang.Iterable<Metric>getMetrics()Java APIinthashCode()NodeMetricsmerge(NodeMetrics that)Returns the most recent data.scala.Option<Metric>metric(java.lang.String key)scala.collection.immutable.Set<Metric>metrics()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()booleansameAs(NodeMetrics that)Returns true ifthataddress is the same as thislongtimestamp()java.lang.StringtoString()static scala.Option<scala.Tuple3<Address,java.lang.Object,scala.collection.immutable.Set<Metric>>>unapply(NodeMetrics x$0)NodeMetricsupdate(NodeMetrics that)Returns the most recent data withEWMAaveraging.
-
-
-
Method Detail
-
$lessinit$greater$default$3
public static scala.collection.immutable.Set<Metric> $lessinit$greater$default$3()
-
apply
public static NodeMetrics apply(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)
-
apply$default$3
public static scala.collection.immutable.Set<Metric> apply$default$3()
-
unapply
public static scala.Option<scala.Tuple3<Address,java.lang.Object,scala.collection.immutable.Set<Metric>>> unapply(NodeMetrics x$0)
-
address
public Address address()
-
timestamp
public long timestamp()
-
metrics
public scala.collection.immutable.Set<Metric> metrics()
-
merge
public NodeMetrics merge(NodeMetrics that)
Returns the most recent data.
-
update
public NodeMetrics update(NodeMetrics that)
Returns the most recent data withEWMAaveraging.
-
metric
public scala.Option<Metric> metric(java.lang.String key)
-
getMetrics
public java.lang.Iterable<Metric> getMetrics()
Java API
-
sameAs
public boolean sameAs(NodeMetrics that)
Returns true ifthataddress is the same as this
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
copy
public NodeMetrics copy(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)
-
copy$default$1
public Address copy$default$1()
-
copy$default$2
public long copy$default$2()
-
copy$default$3
public scala.collection.immutable.Set<Metric> copy$default$3()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-