Class EDP2RawRecorder
java.lang.Object
org.palladiosimulator.recorderframework.AbstractRecorder
org.palladiosimulator.recorderframework.edp2.EDP2RawRecorder
- All Implemented Interfaces:
org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
,IRecorder
This class provides methods necessary to write measurements to EDP2. It follows the typical three
steps of ProbeFramework:
1) initialize: Sets up the whole experiment by specifying the EDP2 repository, an experiment
group, EDP2Measure objects, an ExperimentSetting, an ExperimentRun, and Measurements.
2) writeData: Writes measurements into EDP2.
3) flush: Ends the experiment by writing to EDP2.
Note that this class copes with raw measurements only. Handling aggregated measurements would be
the task of a different recorder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
This method ends the current experiment and close the data output stream.void
initialize
(IRecorderConfiguration recorderConfiguration) Initializes the recorder with the given configuration.void
writeData
(org.palladiosimulator.measurementframework.MeasuringValue data) This method writes the given measurement data to EDP2.Methods inherited from class org.palladiosimulator.recorderframework.AbstractRecorder
newMeasurementAvailable, preUnregister
-
Constructor Details
-
EDP2RawRecorder
public EDP2RawRecorder()
-
-
Method Details
-
initialize
Description copied from interface:IRecorder
Initializes the recorder with the given configuration.- Parameters:
recorderConfiguration
- The configuration used for this recorder.
-
writeData
public void writeData(org.palladiosimulator.measurementframework.MeasuringValue data) This method writes the given measurement data to EDP2.- Parameters:
data
- the given measurement data.
-
flush
public void flush()This method ends the current experiment and close the data output stream.
-