|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cppncss.AbstractResultOutput cppncss.XmlResultOutput
public final class XmlResultOutput
Implements an xml result output.
Constructor Summary | |
---|---|
XmlResultOutput(java.io.PrintStream stream)
Create an xml result output. |
Method Summary | |
---|---|
void |
flush()
Notify about the end of the result flow. |
void |
notify(java.lang.String type,
java.lang.String label,
float average)
Notify about an average. |
void |
notify(java.lang.String type,
java.lang.String label,
long sum)
Notify about a sum. |
protected void |
printHeaders(java.lang.String type,
java.util.List<java.lang.String> labels)
Print measurements headers. |
protected void |
printIndex(java.lang.String item,
int index)
Print the index of an item. |
protected void |
printItem(java.lang.String item)
Print an item. |
protected void |
printMeasurement(java.lang.String label,
int count)
Print a measurement. |
Methods inherited from class cppncss.AbstractResultOutput |
---|
notify, notify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlResultOutput(java.io.PrintStream stream)
stream
- the stream to write toMethod Detail |
---|
protected void printHeaders(java.lang.String type, java.util.List<java.lang.String> labels)
printHeaders
in class AbstractResultOutput
type
- the type of the measurementlabels
- a list of all measurement namesprotected void printItem(java.lang.String item)
printItem
in class AbstractResultOutput
item
- the name of the itemprotected void printMeasurement(java.lang.String label, int count)
printMeasurement
in class AbstractResultOutput
label
- the name of the measurementcount
- the result value of the measurementprotected void printIndex(java.lang.String item, int index)
printIndex
in class AbstractResultOutput
item
- the name of the itemindex
- the indexpublic void notify(java.lang.String type, java.lang.String label, float average)
type
- the type of measurelabel
- the measured itemaverage
- the resultpublic void notify(java.lang.String type, java.lang.String label, long sum)
type
- the type of measurelabel
- the measured itemsum
- the resultpublic void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |