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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Address |
address()
Deprecated.
|
abstract static boolean |
canEqual(java.lang.Object that)
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
java.lang.Iterable<Metric> |
getMetrics()
Deprecated.
Java API
|
int |
hashCode()
Deprecated.
|
NodeMetrics |
merge(NodeMetrics that)
Deprecated.
Returns the most recent data.
|
scala.Option<Metric> |
metric(java.lang.String key)
Deprecated.
|
scala.collection.immutable.Set<Metric> |
metrics()
Deprecated.
|
abstract static int |
productArity()
Deprecated.
|
abstract static java.lang.Object |
productElement(int n)
Deprecated.
|
static scala.collection.Iterator<java.lang.Object> |
productIterator()
Deprecated.
|
static java.lang.String |
productPrefix()
Deprecated.
|
boolean |
sameAs(NodeMetrics that)
Deprecated.
Returns true if
that address is the same as this |
long |
timestamp()
Deprecated.
|
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 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