public interface MergeProgressListener
Interface for listeners to monitor the progress of the merge stages.
A Merge progress listener. This is a coarse-grained progress listener that provides feedback when each stage in the merge has started and completed. It also provides feedback when a merge step (setAncestor, addVersion, extractAll) is completed. Note that some stages are significantly longer than others.
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 |
stages(int enabledStages)
Report the number of enabled stages.
|
void |
started(int stagesStarted,
int stagesCompleted,
String stageDescription)
Reports when a stage has started.
|
void stages(int enabledStages)
enabledStages
- The number of enabled stages.void started(int stagesStarted, int stagesCompleted, String stageDescription)
stagesStarted
- Number of stages startedstagesCompleted
- Number of stages finishedstageDescription
- Description of the stage startedvoid completed(int stagesStarted, int stagesCompleted, String stageDescription, long elapsedTime, long cpuTime)
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).void reportSetAncestorStart(String ancestorVersion)
ancestorVersion
- The name of the ancestor version.void reportSetAncestorFinish(String ancestorVersion, long elapsedTime, long cpuTime)
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).void reportAddVersionStart(String version)
version
- The name of the version.void reportAddVersionFinish(String version, long elapsedTime, long cpuTime)
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).void reportExtractAllStart()
void reportExtractAllFinish(long elapsedTime, long cpuTime)
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.