Package jetbrains.buildServer.vcs
Class VcsOperationProgressProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.VcsOperationProgressProviderImpl
-
- All Implemented Interfaces:
VcsOperationProgressProvider
,VcsOperationProgressRunner
public class VcsOperationProgressProviderImpl extends Object implements VcsOperationProgressProvider, VcsOperationProgressRunner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.vcs.VcsOperationProgressRunner
VcsOperationProgressRunner.VcsOperationException
-
-
Constructor Summary
Constructors Constructor Description VcsOperationProgressProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VcsOperationProgress
getProgress()
Returns an instance of progress object which consumes progress messages.<V> V
runWithProgress(VcsOperationProgress progress, Callable<V> operation)
Runs given operation with specified progress
-
-
-
Method Detail
-
getProgress
@NotNull public VcsOperationProgress getProgress()
Description copied from interface:VcsOperationProgressProvider
Returns an instance of progress object which consumes progress messages. Progress is available during changes collecting and getCurrentState/getCurrentVersion operations. When progress is not available a dummy one is returned.- Specified by:
getProgress
in interfaceVcsOperationProgressProvider
- Returns:
- see above
-
runWithProgress
public <V> V runWithProgress(@NotNull VcsOperationProgress progress, @NotNull Callable<V> operation) throws VcsOperationProgressRunner.VcsOperationException
Description copied from interface:VcsOperationProgressRunner
Runs given operation with specified progress- Specified by:
runWithProgress
in interfaceVcsOperationProgressRunner
- Type Parameters:
V
- type of operation result- Parameters:
progress
- progress consumeroperation
- operation to run- Returns:
- operation result
- Throws:
VcsOperationProgressRunner.VcsOperationException
- in case of any exception during operation call()
-
-