hudson.plugins.jmeter
Class JMeterReport

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by hudson.plugins.jmeter.JMeterReport
All Implemented Interfaces:
java.lang.Comparable<JMeterReport>, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class JMeterReport
extends org.xml.sax.helpers.DefaultHandler
implements java.lang.Comparable<JMeterReport>


Method Summary
 void addSample(HttpSample pHttpSample)
           
 int compareTo(JMeterReport jmReport)
           
 int countErrors()
           
 double errorPercent()
           
 long getAverage()
           
 hudson.model.AbstractBuild<?,?> getBuild()
           
 java.lang.String getDisplayName()
           
 UriReport getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 HttpSample getHttpSample()
           
 long getMax()
           
 long getMin()
           
 java.lang.String getReportFileName()
           
 java.util.List<UriReport> getUriListOrdered()
           
 java.util.Map<java.lang.String,UriReport> getUriReportMap()
           
 void setHttpSample(HttpSample httpSample)
           
 void setReportFileName(java.lang.String reportFileName)
           
 int size()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          jMeter XML log format is in http://jakarta.apache.org/jmeter/usermanual/listeners.html There are two different tags which delimit jmeter samples: httpSample for http samples sample for non http samples There are also two different XML formats which we have to handle: v2.0 = "label", "timeStamp", "time", "success" v2.1 = "lb", "ts", "t", "s"
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addSample

public void addSample(HttpSample pHttpSample)
               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

compareTo

public int compareTo(JMeterReport jmReport)
Specified by:
compareTo in interface java.lang.Comparable<JMeterReport>

countErrors

public int countErrors()

errorPercent

public double errorPercent()

getAverage

public long getAverage()

getBuild

public hudson.model.AbstractBuild<?,?> getBuild()

getDisplayName

public java.lang.String getDisplayName()

getDynamic

public UriReport getDynamic(java.lang.String token,
                            org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws java.io.IOException
Throws:
java.io.IOException

getHttpSample

public HttpSample getHttpSample()

getMax

public long getMax()

getMin

public long getMin()

getReportFileName

public java.lang.String getReportFileName()

getUriListOrdered

public java.util.List<UriReport> getUriListOrdered()

getUriReportMap

public java.util.Map<java.lang.String,UriReport> getUriReportMap()

setHttpSample

public void setHttpSample(HttpSample httpSample)

setReportFileName

public void setReportFileName(java.lang.String reportFileName)

size

public int size()

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
jMeter XML log format is in http://jakarta.apache.org/jmeter/usermanual/listeners.html There are two different tags which delimit jmeter samples: httpSample for http samples sample for non http samples There are also two different XML formats which we have to handle: v2.0 = "label", "timeStamp", "time", "success" v2.1 = "lb", "ts", "t", "s"

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException


Copyright © 2009. All Rights Reserved.