public class ConsoleDestination extends AbstractDestination
Measurement
to standard output.Constructor and Description |
---|
ConsoleDestination() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the destination.
|
String |
getBackground()
Gets the background color code.
|
String |
getForeground()
Gets the foreground color code.
|
String |
getPrefix()
Gets the prefix of the console output.
|
void |
open()
Opens the destination for reporting.
|
void |
report(Measurement measurement)
Reports a new
Measurement to the destination. |
ConsoleDestination |
setBackground(String background)
Sets the background color code.
|
ConsoleDestination |
setForeground(String foreground)
Sets the foreground color code.
|
ConsoleDestination |
setPrefix(String prefix)
Sets the prefix of the console output.
|
getParentReporter, open
public void open()
AbstractDestination
open
in class AbstractDestination
public void close()
Destination
public void report(Measurement measurement) throws ReportingException
Destination
Measurement
to the destination.measurement
- A measurement to be reported.ReportingException
- When an error occurred during reporting the measurement like no space left on device. The root cause should be encapsulated.public String getForeground()
public ConsoleDestination setForeground(String foreground)
foreground
- The foreground color code.public String getBackground()
public ConsoleDestination setBackground(String background)
background
- The background color code.public String getPrefix()
public ConsoleDestination setPrefix(String prefix)
prefix
- The prefix of the console output.Copyright © 2010–2017 PerfCake Community. All rights reserved.