public class DCPipelineProgressTextReporter extends java.lang.Object implements DocumentProgressListener
Constructor and Description |
---|
DCPipelineProgressTextReporter()
Constructs a progress reporter that reports times and filter names.
|
DCPipelineProgressTextReporter(boolean reportTimes)
Constructs a configurable progress reporter.
|
DCPipelineProgressTextReporter(boolean reportTimes,
boolean reportComparisonHeartbeat)
Constructs a configurable progress reporter.
|
Modifier and Type | Method and Description |
---|---|
void |
reportCompareFinish(long elapsedTime,
long threadCPUTime)
Reports when the comparison has completed.
|
void |
reportCompareHeartbeat()
Reports that progress has been made in the current comparison.
|
void |
reportCompareStart()
Reports when the comparison has started.
|
void |
reportFilterFinish(PipelineLocationEntry ple,
long elapsedTimeNS,
long threadCPUTimeNS)
Reports when a pipeline filter finishes.
|
void |
reportFilterOrSubchainSkipped(PipelineLocationEntry ple,
int numberOfStepsSkipped)
Reports when a pipeline filter or subchain is skipped.
|
void |
reportFilterStart(PipelineLocationEntry ple)
Reports when a pipeline filter starts.
|
void |
reportFlatteningPreProcessingFinish(PipelineLocationEntry ple,
long elapsedTimeNS,
long threadCPUTimeNS)
Report the flattening pre-processing stage finishes.
|
void |
reportFlatteningPreProcessingStart(PipelineLocationEntry ple)
Report the flattening pre-processing stage starts.
|
void |
reportLoadFinish(PipelineLocationEntry ple,
long elapsedTime,
long threadCPUTime)
Reports when pipeline has been loaded.
|
void |
reportLoadStart(PipelineLocationEntry ple)
Reports when pipeline starts to load.
|
void |
reportNumberOfStages(int enabledStages)
Report the number of enabled stages.
|
void |
reportSaveFinish(long elapsedTime,
long threadCPUTime)
Reports when the output has been completed.
|
void |
reportSaveStart()
Reports when the output is starting to be written.
|
void |
reportSubchainEnter(PipelineLocationEntry ple)
Reports when a subchain within the pipeline is entered.
|
void |
reportSubchainExit(PipelineLocationEntry ple,
long elapsedTime,
long threadCPUTime)
Reports when a subchain within the pipeline is exited.
|
void |
setReportIncidentals(boolean reportTimes)
Set report incidentals.
|
void |
setReportTimes(boolean reportTimes)
Controls whether timing information is reported.
|
public DCPipelineProgressTextReporter()
public DCPipelineProgressTextReporter(boolean reportTimes)
reportTimes
- when true timing information is reported where availablepublic DCPipelineProgressTextReporter(boolean reportTimes, boolean reportComparisonHeartbeat)
reportTimes
- when true timing information is reported where availablereportComparisonHeartbeat
- when true a comparison 'heartbeat' is output at approximately one second intervalspublic void setReportTimes(boolean reportTimes)
reportTimes
- when true timing information is reported where availablepublic void setReportIncidentals(boolean reportTimes)
reportTimes
- when true timing information is reported where availablepublic void reportNumberOfStages(int enabledStages)
Start
ed and Finish
ed. Note that all other progress report messages, such as those marking
when a subchain has been Enter
ed and Exit
ed or those marking when a disabled stage or chain has
been Skipped
, are not part of the enabled stage count.reportNumberOfStages
in interface PipelineProgressListener
enabledStages
- The number of enabled stages.public void reportCompareFinish(long elapsedTime, long threadCPUTime)
reportCompareFinish
in interface PipelineProgressListener
elapsedTime
- The elapsed time taken to perform the comparison (in nanoseconds).threadCPUTime
- The CPU time taken to perform the comparison (in nanoseconds).public void reportCompareHeartbeat()
Notes:
reportCompareHeartbeat
in interface PipelineProgressListener
public void reportCompareStart()
reportCompareStart
in interface PipelineProgressListener
public void reportFilterFinish(PipelineLocationEntry ple, long elapsedTimeNS, long threadCPUTimeNS)
reportFilterFinish
in interface PipelineProgressListener
ple
- The filter's location within the pipeline.elapsedTimeNS
- The elapsed time taken to execute the filter (in nanoseconds).threadCPUTimeNS
- The CPU time taken to execute this filter (in nanoseconds).public void reportFilterStart(PipelineLocationEntry ple)
reportFilterStart
in interface PipelineProgressListener
ple
- The filter's location within the pipeline.public void reportFilterOrSubchainSkipped(PipelineLocationEntry ple, int numberOfStepsSkipped)
reportFilterOrSubchainSkipped
in interface PipelineProgressListener
ple
- The filter or subchain's location within the pipeline.numberOfStepsSkipped
- The number of filter stages skipped.public void reportLoadFinish(PipelineLocationEntry ple, long elapsedTime, long threadCPUTime)
reportLoadFinish
in interface PipelineProgressListener
ple
- The name of the pipeline; typically "input-a", "input-b", or "result".elapsedTime
- The elapsed time taken to load a pipeline (in nanoseconds).threadCPUTime
- The CPU time taken to load a pipeline (in nanoseconds).public void reportLoadStart(PipelineLocationEntry ple)
reportLoadStart
in interface PipelineProgressListener
ple
- The name of the pipeline; typically "input-a", "input-b", or "result".public void reportSaveFinish(long elapsedTime, long threadCPUTime)
reportSaveFinish
in interface PipelineProgressListener
elapsedTime
- The elapsed time taken to write the output (in nanoseconds).threadCPUTime
- The CPU time taken to write the output (in nanoseconds).public void reportSaveStart()
reportSaveStart
in interface PipelineProgressListener
public void reportSubchainEnter(PipelineLocationEntry ple)
PipelineProgressListener
reportSubchainEnter
in interface PipelineProgressListener
ple
- The subchain's location within the pipeline.public void reportSubchainExit(PipelineLocationEntry ple, long elapsedTime, long threadCPUTime)
PipelineProgressListener
reportSubchainExit
in interface PipelineProgressListener
ple
- The subchain's location within the pipeline.elapsedTime
- The elapsed time taken to execute the subchain (in nanoseconds).threadCPUTime
- The CPU time taken to execute this subchain (in nanoseconds).public void reportFlatteningPreProcessingStart(PipelineLocationEntry ple)
DocumentProgressListener
reportFlatteningPreProcessingStart
in interface DocumentProgressListener
ple
- The location, which will be either 'input-a' or 'input-b'.public void reportFlatteningPreProcessingFinish(PipelineLocationEntry ple, long elapsedTimeNS, long threadCPUTimeNS)
DocumentProgressListener
reportFlatteningPreProcessingFinish
in interface DocumentProgressListener
ple
- The location, which will be either 'input-a' or 'input-b'.elapsedTimeNS
- The elapsed time taken to execute the filter (in nanoseconds).threadCPUTimeNS
- The CPU time taken to execute this filter (in nanoseconds).