org.apache.activemq.tool.reports
Class XmlFilePerfReportWriter

java.lang.Object
  extended by org.apache.activemq.tool.reports.AbstractPerfReportWriter
      extended by 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
XmlFilePerfReportWriter()
           
XmlFilePerfReportWriter(String reportDir, String reportName)
           
 
Method Summary
 void closeReportWriter()
           
protected  File createTempLogFile()
           
protected  File createXmlFile()
           
 String getReportDir()
           
 String getReportName()
           
 File getXmlFile()
           
 void openReportWriter()
           
protected  void parsePerfCsvData(String elementName, String csvData)
           
 void setReportDir(String reportDir)
           
 void setReportName(String reportName)
           
 void setXmlFile(File xmlFile)
           
protected  void writeCpuSummary(Map summary)
           
 void writeCsvData(int csvType, String csvData)
           
 void writeInfo(String info)
           
protected  void writeMap(String name, Map map)
           
 void writeProperties(Properties props)
           
 void writeProperties(String header, Properties props)
           
protected  void writeThroughputSummary(Map summary)
           
protected  void writeToXml()
           
protected  void writeXmlFooter()
           
protected  void writeXmlHeader()
           
protected  void writeXmlLogFile()
           
protected  void writeXmlPerfSummary()
           
protected  void writeXmlTestSettings()
           
 
Methods inherited from class org.apache.activemq.tool.reports.AbstractPerfReportWriter
getSummary, handleCsvData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFilePerfReportWriter

public XmlFilePerfReportWriter()

XmlFilePerfReportWriter

public XmlFilePerfReportWriter(String reportDir,
                               String reportName)
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)

writeMap

protected void writeMap(String name,
                        Map map)

parsePerfCsvData

protected void parsePerfCsvData(String elementName,
                                String csvData)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.