|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.cluster.NodeMetrics
public class NodeMetrics
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 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 akka.actor.Metric
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 |
---|
public NodeMetrics(Address address, long timestamp, scala.collection.immutable.Set<Metric> metrics)
Method Detail |
---|
public Address address()
public long timestamp()
public scala.collection.immutable.Set<Metric> metrics()
public NodeMetrics merge(NodeMetrics that)
that
- (undocumented)
public scala.Option<Metric> metric(java.lang.String key)
public java.lang.Iterable<Metric> getMetrics()
public boolean sameAs(NodeMetrics that)
that
address is the same as this
that
- (undocumented)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface scala.Equals
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |