|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcppncss.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 to| Method Detail |
|---|
protected void printHeaders(java.lang.String type,
java.util.List<java.lang.String> labels)
printHeaders in class AbstractResultOutputtype - the type of the measurementlabels - a list of all measurement namesprotected void printItem(java.lang.String item)
printItem in class AbstractResultOutputitem - the name of the item
protected void printMeasurement(java.lang.String label,
int count)
printMeasurement in class AbstractResultOutputlabel - the name of the measurementcount - the result value of the measurement
protected void printIndex(java.lang.String item,
int index)
printIndex in class AbstractResultOutputitem - the name of the itemindex - the index
public void notify(java.lang.String type,
java.lang.String label,
float average)
type - the type of measurelabel - the measured itemaverage - the result
public 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 | |||||||||