|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.datatransformation.datatransformationlibrary.statistics.StatisticsManager
public class StatisticsManager
| Nested Class Summary | |
|---|---|
static class |
StatisticsManager.MetricType
|
| Constructor Summary | |
|---|---|
StatisticsManager()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsManager()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||