public final class NodeMetrics
extends java.lang.Object
implements scala.Product, scala.Serializable
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 Metric
Constructor and Description |
---|
NodeMetrics(Address address,
long timestamp,
scala.collection.immutable.Set<Metric> metrics) |
Modifier and Type | Method and Description |
---|---|
Address |
address() |
abstract static boolean |
canEqual(java.lang.Object that) |
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() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
boolean |
sameAs(NodeMetrics that)
Returns true if
that address is the same as this |
long |
timestamp() |
NodeMetrics |
update(NodeMetrics that)
Returns the most recent data with
EWMA averaging. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public abstract static boolean canEqual(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public Address address()
public long timestamp()
public scala.collection.immutable.Set<Metric> metrics()
public NodeMetrics merge(NodeMetrics that)
that
- (undocumented)public NodeMetrics update(NodeMetrics that)
EWMA
averaging.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 thisthat
- (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