|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cppncss.AbstractResultOutput cppncss.AsciiResultOutput
public final class AsciiResultOutput
Implements a text result output.
Constructor Summary | |
---|---|
AsciiResultOutput(java.io.PrintStream stream)
Create an ascii result output to a given stream. |
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 AsciiResultOutput(java.io.PrintStream stream)
stream
- the output print streamMethod 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 printIndex(java.lang.String item, int index)
printIndex
in class AbstractResultOutput
item
- the name of the itemindex
- the indexprotected 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 printItem(java.lang.String item)
printItem
in class AbstractResultOutput
item
- the name of the itempublic 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 |