public class StatisticsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StatisticsManager.MetricType |
| Constructor and Description |
|---|
StatisticsManager() |
| Modifier and Type | Method and Description |
|---|---|
static Metric |
createMetric(String name,
String description,
StatisticsManager.MetricType mType)
Creates a new Metric.
|
static Metric |
createMetric(String name,
String description,
StatisticsManager.MetricType mType,
int maxNumMeasures)
Creates a new Metric with a specific maximum number of measures.
|
static HashMap<String,Metric> |
getAllMetricsOfType(StatisticsManager.MetricType mType)
Returns all metrics of one
StatisticsManager.MetricType. |
static Metric |
getMetric(String name,
StatisticsManager.MetricType mType)
Returns the Metric by its name and MetricType.
|
static String |
toXML()
Converts the statistics to a an XML format.
|
public static Metric getMetric(String name, StatisticsManager.MetricType mType)
name - The name of the Metric.mType - The type of the Metric.public static Metric createMetric(String name, String description, StatisticsManager.MetricType mType)
Creates a new Metric.
Synchronization is applicable only for the iterators which are read in toXML().
name - The name of the new Metric.description - A description of the new Metric.mType - The type of the new Metric.public static Metric createMetric(String name, String description, StatisticsManager.MetricType mType, int maxNumMeasures)
Creates a new Metric with a specific maximum number of measures.
Synchronization is applicable only for the iterators which are read in toXML().
name - The name of the new Metric.description - A description of the new Metric.mType - The type of the new Metric.maxNumMeasures - The maximum number of measures that will be taken for this Metric.public static HashMap<String,Metric> getAllMetricsOfType(StatisticsManager.MetricType mType)
Returns all metrics of one StatisticsManager.MetricType.
Accesses to the returned HashMap shall be synchronized on lock of the StatisticsManager instance.
mType - The type of the metrics.public static String toXML()
Copyright © 2014. All Rights Reserved.