public interface Destination extends Closeable
Reporters
and are completely controlled by them. The only responsibility of a destination is to open
a reporting channel, report measurements, and close the reporting channel.
It is the role of Measurement
to provide all the information
to be reported (including value types, names, units and custom labels).Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the destination.
|
void |
open(Reporter parentReporter)
Opens the destination for reporting.
|
void |
report(Measurement measurement)
Reports a new
Measurement to the destination. |
void open(Reporter parentReporter)
parentReporter
- Reporter opening the destination.void close()
close
in interface AutoCloseable
close
in interface Closeable
void report(Measurement measurement) throws ReportingException
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.Copyright © 2010–2017 PerfCake Community. All rights reserved.