public class AggregatedMetrics extends Object
Constructor and Description |
---|
AggregatedMetrics() |
Modifier and Type | Method and Description |
---|---|
AggregatedMetrics |
add(String name,
double value,
String hostnamePartitionId)
Add value from hostname for a metric.
|
AggregatedMetrics |
add(String name,
long value,
String hostnamePartitionId)
Add value from hostname for a metric.
|
AggregatedMetrics |
add(WorkerSuperstepMetrics workerMetrics,
String hostname)
Add metrics from worker.
|
AggregatedMetric |
get(String name)
Get AggregatedMetric with given name.
|
Map<String,AggregatedMetric<?>> |
getAll()
Get map of all aggregated metrics.
|
AggregatedMetrics |
print(long superstep,
PrintStream out)
Print the aggregated metrics to the stream provided.
|
public AggregatedMetrics add(String name, long value, String hostnamePartitionId)
name
- String name of metricvalue
- long value to trackhostnamePartitionId
- String host it came frompublic AggregatedMetrics add(String name, double value, String hostnamePartitionId)
name
- String name of metricvalue
- double value to trackhostnamePartitionId
- String host it came frompublic AggregatedMetrics add(WorkerSuperstepMetrics workerMetrics, String hostname)
workerMetrics
- WorkerSuperstepMetrics from workhostname
- String hostname of workerpublic AggregatedMetrics print(long superstep, PrintStream out)
superstep
- long number of superstep.out
- PrintStream to write to.public AggregatedMetric get(String name)
name
- String metric to lookup.public Map<String,AggregatedMetric<?>> getAll()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.