public class ReplayResults extends Object implements Closeable
RawReporter
. The same
scenario should be used, and its reporting section will be used to configure reporters and destinations.
Then the normal reporting operation is emulated to achieve repeatable results.Constructor and Description |
---|
ReplayResults(Scenario scenario,
String rawRecords)
Gets a new replay facility for the given scenario and data file reported by
RawReporter . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
replay()
Replays the recorded data through the scenario's reporters.
|
public ReplayResults(Scenario scenario, String rawRecords) throws IOException
RawReporter
.scenario
- The scenario from which the reporting configuration will be taken.rawRecords
- The file wit recorded results.IOException
- When it was not possible to read the recorded results.public void replay() throws IOException
RawReporter
is ignored.IOException
- When there was an error reading the replay data.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2010–2017 PerfCake Community. All rights reserved.