public class MergeProgressTextReporter extends Object implements MergeProgressListener
Constructor and Description |
---|
MergeProgressTextReporter()
Default constructor.
|
MergeProgressTextReporter(boolean reportRunTimes)
Constructor allowing one to specify whether the returned instance should report run times.
|
Modifier and Type | Method and Description |
---|---|
void |
completed(int stagesStarted,
int stagesCompleted,
String stageDescription,
long elapsedTime,
long cpuTime)
Reports when a stage has finished.
|
void |
reportAddVersionFinish(String version,
long elapsedTime,
long cpuTime)
Reports when the add version operation has completed.
|
void |
reportAddVersionStart(String version)
Reports when the add version operation has started.
|
void |
reportExtractAllFinish(long elapsedTime,
long cpuTime)
Reports when the extract all operation has completed.
|
void |
reportExtractAllStart()
Reports when the extract all operation has started.
|
void |
reportSetAncestorFinish(String ancestorVersion,
long elapsedTime,
long cpuTime)
Reports when the set ancestor operation has completed.
|
void |
reportSetAncestorStart(String ancestorVersion)
Reports when the set ancestor operation has started.
|
void |
setReportIncidentals(boolean reportTimes)
Set report incidentals.
|
void |
setReportTimes(boolean reportTimes)
Controls whether timing information is reported.
|
void |
stages(int enabledStages)
Report the number of enabled stages.
|
void |
started(int stagesStarted,
int stagesCompleted,
String stageDescription)
Reports when a stage has started.
|
public MergeProgressTextReporter()
public MergeProgressTextReporter(boolean reportRunTimes)
reportRunTimes
- Set to true to report the run times.public 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 stages(int enabledStages)
stages
in interface MergeProgressListener
enabledStages
- The number of enabled stages.public void started(int stagesStarted, int stagesCompleted, String stageDescription)
started
in interface MergeProgressListener
stagesStarted
- Number of stages startedstagesCompleted
- Number of stages finishedstageDescription
- Description of the stage startedpublic void completed(int stagesStarted, int stagesCompleted, String stageDescription, long elapsedTime, long cpuTime)
completed
in interface MergeProgressListener
stagesStarted
- Number of stages startedstagesCompleted
- Number of stages completedstageDescription
- Description of the stage finishedelapsedTime
- The elapsed time taken to execute this stage (in nanoseconds).cpuTime
- The CPU time taken to execute this stage (in nanoseconds).public void reportSetAncestorStart(String ancestorVersion)
reportSetAncestorStart
in interface MergeProgressListener
ancestorVersion
- The name of the ancestor version.public void reportSetAncestorFinish(String ancestorVersion, long elapsedTime, long cpuTime)
reportSetAncestorFinish
in interface MergeProgressListener
ancestorVersion
- The name of the ancestor version.elapsedTime
- The elapsed time taken to execute the set ancestor stage (in nanoseconds).cpuTime
- The CPU time taken to execute the set ancestor stage (in nanoseconds).public void reportAddVersionStart(String version)
reportAddVersionStart
in interface MergeProgressListener
version
- The name of the version.public void reportAddVersionFinish(String version, long elapsedTime, long cpuTime)
reportAddVersionFinish
in interface MergeProgressListener
version
- The name of the version.elapsedTime
- The elapsed time taken to execute this add version stage (in nanoseconds).cpuTime
- The CPU time taken to execute this add version stage (in nanoseconds).public void reportExtractAllStart()
reportExtractAllStart
in interface MergeProgressListener
public void reportExtractAllFinish(long elapsedTime, long cpuTime)
reportExtractAllFinish
in interface MergeProgressListener
elapsedTime
- The elapsed time taken to execute the extract all stage (in nanoseconds).cpuTime
- The CPU time taken to execute the extract all stage (in nanoseconds).Copyright © 2023 Deltaman Group Ltd. All Rights Reserved.