|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatisticOutput
StatisticOutput
offers all methods needed to write out the statistics provided by a StatisticComponent
instance.
Method Summary | |
---|---|
void |
close()
Closes the underlying stream. |
String[] |
getLabels()
Returns the labels for the measurements. |
StatisticComponent |
getStatistics()
Returns the current statistic component that is used by the output. |
void |
resetOptionalStatisticEntries()
Resets the values of all optional labels using empty Strings. |
boolean |
setOptionalStatisticEntry(String label)
Sets a new optional label with no value. |
boolean |
setOptionalStatisticEntry(String label,
String value)
Sets a new optional label with the passed value. |
void |
setStatistics(StatisticComponent statistics)
Sets the current statistic component that is used by the output. |
void |
writeStatistics()
Writes the stored statistics. |
Method Detail |
---|
void writeStatistics() throws IOException
IOException
- If an error occurs while writing to the output.String[] getLabels()
StatisticComponent getStatistics()
StatisticComponent
.void setStatistics(StatisticComponent statistics)
statistics
- StatisticComponent
that is to be set.void resetOptionalStatisticEntries()
boolean setOptionalStatisticEntry(String label, String value)
label
- The entry's identifier.value
- The entry's value.
true
, if a new statistic entry was added (no old value was overwritten); otherwise false
.boolean setOptionalStatisticEntry(String label)
label
- The entry's identifier.
true
, if a new statistic entry was added (no old value was overwritten); otherwise false
.void close() throws IOException
IOException
- If an error occurs while closing the underlying stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |