public class ControlLoadSnapshot
extends java.lang.Object
Constructor and Description |
---|
ControlLoadSnapshot(long latest,
long average,
long time)
Instantiates a new control metric response with given latest, average, time.
|
ControlLoadSnapshot(long latest,
long average,
long time,
long[] recent)
Instantiates a new control metric response with given latest, average, time,
recent values.
|
Modifier and Type | Method and Description |
---|---|
long |
average()
Returns average value of control metric.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
long |
latest()
Returns latest value of control metric.
|
long[] |
recent()
Returns a set of historical recent of control metric.
|
long |
time()
Returns last logging time of control metric.
|
java.lang.String |
toString() |
public ControlLoadSnapshot(long latest, long average, long time)
latest
- latest value of control metricaverage
- average value of control metrictime
- last logging time of control metricpublic ControlLoadSnapshot(long latest, long average, long time, long[] recent)
latest
- latest value of control metricaverage
- average value of control metrictime
- last logging time of control metricrecent
- a set of historical datapublic long latest()
public long time()
public long average()
public long[] recent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object