Package org.apache.activemq.tool.reports
Class XmlFilePerfReportWriter
- java.lang.Object
-
- org.apache.activemq.tool.reports.AbstractPerfReportWriter
-
- org.apache.activemq.tool.reports.XmlFilePerfReportWriter
-
- All Implemented Interfaces:
PerformanceReportWriter
public class XmlFilePerfReportWriter extends AbstractPerfReportWriter
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.tool.reports.AbstractPerfReportWriter
plugins, REPORT_PLUGIN_CPU, REPORT_PLUGIN_THROUGHPUT
-
-
Constructor Summary
Constructors Constructor Description XmlFilePerfReportWriter()XmlFilePerfReportWriter(String reportDir, String reportName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseReportWriter()protected FilecreateTempLogFile()protected FilecreateXmlFile()StringgetReportDir()StringgetReportName()FilegetXmlFile()voidopenReportWriter()protected voidparsePerfCsvData(String elementName, String csvData)voidsetReportDir(String reportDir)voidsetReportName(String reportName)voidsetXmlFile(File xmlFile)protected voidwriteCpuSummary(Map summary)voidwriteCsvData(int csvType, String csvData)voidwriteInfo(String info)protected voidwriteMap(String name, Map map)voidwriteProperties(String header, Properties props)voidwriteProperties(Properties props)protected voidwriteThroughputSummary(Map summary)protected voidwriteToXml()protected voidwriteXmlFooter()protected voidwriteXmlHeader()protected voidwriteXmlLogFile()protected voidwriteXmlPerfSummary()protected voidwriteXmlTestSettings()-
Methods inherited from class org.apache.activemq.tool.reports.AbstractPerfReportWriter
getSummary, handleCsvData
-
-
-
-
Method Detail
-
openReportWriter
public void openReportWriter()
-
closeReportWriter
public void closeReportWriter()
-
getReportDir
public String getReportDir()
-
setReportDir
public void setReportDir(String reportDir)
-
getReportName
public String getReportName()
-
setReportName
public void setReportName(String reportName)
-
getXmlFile
public File getXmlFile()
-
setXmlFile
public void setXmlFile(File xmlFile)
-
writeInfo
public void writeInfo(String info)
-
writeCsvData
public void writeCsvData(int csvType, String csvData)
-
writeProperties
public void writeProperties(String header, Properties props)
-
writeProperties
public void writeProperties(Properties props)
-
createTempLogFile
protected File createTempLogFile()
-
createXmlFile
protected File createXmlFile()
-
writeToXml
protected void writeToXml()
-
writeXmlHeader
protected void writeXmlHeader()
-
writeXmlFooter
protected void writeXmlFooter()
-
writeXmlTestSettings
protected void writeXmlTestSettings()
-
writeXmlLogFile
protected void writeXmlLogFile() throws IOException- Throws:
IOException
-
writeXmlPerfSummary
protected void writeXmlPerfSummary()
-
writeThroughputSummary
protected void writeThroughputSummary(Map summary)
-
writeCpuSummary
protected void writeCpuSummary(Map summary)
-
-