akka.cluster
Class NodeMetrics

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

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

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.

See Also:
Serialized Form

Constructor Summary
NodeMetrics(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)
           
 
Method Summary
 Address address()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Iterable<Metric> getMetrics()
          Java API
 int hashCode()
           
 NodeMetrics merge(NodeMetrics that)
          Returns the most recent data.
 scala.Option<Metric> metric(java.lang.String key)
           
 scala.collection.immutable.Set<Metric> metrics()
           
 boolean sameAs(NodeMetrics that)
          Returns true if that address is the same as this
 long timestamp()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual
 

Constructor Detail

NodeMetrics

public NodeMetrics(Address address,
                   long timestamp,
                   scala.collection.immutable.Set<Metric> metrics)
Method Detail

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.


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 if that address is the same as this


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface scala.Equals
Overrides:
equals in class java.lang.Object