public abstract class MetricsMeasurement extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
className
The class name of the measurement.
|
protected String |
fileName
The file name of the measurement.
|
protected Map<String,Metric> |
metrics
The metrics reported for this measurement.
|
protected String |
packageName
The package name of the measurement.
|
Constructor and Description |
---|
MetricsMeasurement() |
Modifier and Type | Method and Description |
---|---|
void |
addMetric(Metric metric)
Add a new
Metric . |
String |
getClassName() |
String |
getFileName() |
Optional<Number> |
getMetric(String id)
Get a metric based on its id.
|
Map<String,Metric> |
getMetrics() |
String |
getPackageName() |
String |
getQualifiedClassName() |
abstract MetricsMeasurement |
merge(MetricsMeasurement metricsMeasurement)
Merge a
MetricsMeasurement with this one. |
void |
setClassName(String className) |
void |
setFileName(String fileName) |
void |
setPackageName(String packageName) |
protected String fileName
protected String packageName
protected String className
public String getFileName()
public void setFileName(String fileName)
public String getPackageName()
public void setPackageName(String packageName)
public String getClassName()
public void setClassName(String className)
public String getQualifiedClassName()
public void addMetric(Metric metric)
Metric
.metric
- the metric to addpublic abstract MetricsMeasurement merge(MetricsMeasurement metricsMeasurement)
MetricsMeasurement
with this one.metricsMeasurement
- the MetricsMeasurement
to mergeMetricsMeasurement
Copyright © 2016–2020. All rights reserved.