Interface IRecorder
- All Superinterfaces:
org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
- All Known Implementing Classes:
AbstractRecorder
,EDP2RawRecorder
,SensorFrameworkRecorder
public interface IRecorder
extends org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
A Recorder is responsible for storing the measurements to any external, independent device.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
This method is called at the end of the writing process.void
initialize
(IRecorderConfiguration recorderConfiguration) Initializes the recorder with the given configuration.void
writeData
(org.palladiosimulator.measurementframework.MeasuringValue measurement) Writes data into the recorder.Methods inherited from interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
newMeasurementAvailable, preUnregister
-
Method Details
-
initialize
Initializes the recorder with the given configuration.- Parameters:
recorderConfiguration
- The configuration used for this recorder.
-
writeData
void writeData(org.palladiosimulator.measurementframework.MeasuringValue measurement) Writes data into the recorder.- Parameters:
measurement
- The measurement that should be stored.
-
flush
void flush()This method is called at the end of the writing process. Flushing assures that all data is written to the configured data sink, e.g., a file data source.
-