abstract class AbstractReportWriter
Abstract superclass for ReportWriter implementation classes.
Subclasses must implement thewriteReport(Writer, ResultsNode, AnalysisContext)
method
and define a defaultOutputFile
property.
Modifiers | Name | Description |
---|---|---|
protected static def |
BASE_MESSAGES_BUNDLE |
|
protected static def |
CUSTOM_MESSAGES_BUNDLE |
|
protected static def |
GMETRICS_URL |
|
protected def |
LOG |
|
protected def |
customMessagesBundleName |
|
protected def |
formatterFactory |
|
protected Map<Metric, Formatter> |
formatters |
|
protected def |
getTimestamp |
|
protected def |
initializeResourceBundle |
|
protected def |
resourceBundle |
Type | Name and description |
---|---|
String |
outputFile |
Object |
writeToStandardOut |
Type | Name and description |
---|---|
protected String |
formatMetricResultValue(String metricName, Object value) |
protected String |
getFormattedTimestamp() |
protected String |
getResourceBundleString(String resourceKey, String defaultString = '?') |
protected String |
getResourceBundleStringOrNull(String resourceKey) |
protected void |
initializeDefaultResourceBundle() |
protected void |
initializeFormatters(MetricSet metricSet) |
protected void |
writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext) |
void |
writeReport(ResultsNode resultsNode, AnalysisContext analysisContext) |