public class CompositeMetrics extends SystemMetrics<CompositeMetrics>
| Constructor and Description |
|---|
CompositeMetrics() |
| Modifier and Type | Method and Description |
|---|---|
CompositeMetrics |
diff(CompositeMetrics b,
CompositeMetrics result)
Subtract the object passed in from the current object.
|
boolean |
equals(java.lang.Object o) |
<T extends SystemMetrics<T>> |
getMetric(java.lang.Class<T> metricsClass) |
java.util.Map<java.lang.Class<? extends SystemMetrics>,SystemMetrics> |
getMetrics() |
int |
hashCode() |
<T extends SystemMetrics<T>> |
putMetric(java.lang.Class<T> metricsClass,
T metric) |
CompositeMetrics |
set(CompositeMetrics b)
Sets all fields in this to values from the SystemMetrics object passed in: a _deep_ copy that
shouldn't share any values with other metrics objects.
|
CompositeMetrics |
sum(CompositeMetrics b,
CompositeMetrics result)
Add values from the SystemMetrics object passed in and sets them on the output object,
if available.
|
java.lang.String |
toString() |
diff, sumpublic CompositeMetrics diff(CompositeMetrics b, CompositeMetrics result)
SystemMetricsdiff in class SystemMetrics<CompositeMetrics>public CompositeMetrics sum(CompositeMetrics b, CompositeMetrics result)
SystemMetricssum in class SystemMetrics<CompositeMetrics>public CompositeMetrics set(CompositeMetrics b)
SystemMetricsset in class SystemMetrics<CompositeMetrics>public <T extends SystemMetrics<T>> CompositeMetrics putMetric(java.lang.Class<T> metricsClass, T metric)
public <T extends SystemMetrics<T>> T getMetric(java.lang.Class<T> metricsClass)
public java.util.Map<java.lang.Class<? extends SystemMetrics>,SystemMetrics> getMetrics()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object