public class ReportManager extends Object
Constructor and Description |
---|
ReportManager() |
Modifier and Type | Method and Description |
---|---|
Set<Reporter> |
getReporters()
Gets an immutable list of current reporters.
|
RunInfo |
getRunInfo()
Gets
RunInfo associated with this reporter. |
MeasurementUnit |
newMeasurementUnit()
Creates a new
measurement unit with a unique iteration number. |
void |
registerReporter(Reporter reporter)
Registers a new
Reporter . |
void |
report(MeasurementUnit measurementUnit)
Reports a newly measured
MeasurementUnit . |
void |
reset()
Resets reporting to the zero state.
|
void |
setRunInfo(RunInfo runInfo)
Sets
RunInfo for the current measurement run. |
void |
start()
Starts the reporting facility.
|
void |
stop()
Stops the reporting facility.
|
void |
unregisterReporter(Reporter reporter)
Removes a registered
Reporter . |
public MeasurementUnit newMeasurementUnit()
measurement unit
with a unique iteration number.measurement unit
unit with a unique iteration number, or null if a measurement is not running or is already finished.public void setRunInfo(RunInfo runInfo)
RunInfo
for the current measurement run.runInfo
- The RunInfo that contains information about the current measurement.public RunInfo getRunInfo()
RunInfo
associated with this reporter.RunInfo
associated with this reporter.public void report(MeasurementUnit measurementUnit) throws ReportingException
MeasurementUnit
. Each Measurement Unit must be reported exactly once.measurementUnit
- A MeasurementUnit to be reported.ReportingException
- If reporting could not be done properly.public void reset()
public void registerReporter(Reporter reporter)
Reporter
.reporter
- A reporter to be registered.public void unregisterReporter(Reporter reporter)
Reporter
.reporter
- A reporter to unregistered.public Set<Reporter> getReporters()
public void start()
public void stop()
Copyright © 2010–2017 PerfCake Community. All rights reserved.