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 VcsOperationProgressgetProgress()Returns an instance of progress object which consumes progress messages.<V> VrunWithProgress(VcsOperationProgress progress, Callable<V> operation)Runs given operation with specified progress
-
-
-
Method Detail
-
getProgress
@NotNull public VcsOperationProgress getProgress()
Description copied from interface:VcsOperationProgressProviderReturns 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:
getProgressin interfaceVcsOperationProgressProvider- Returns:
- see above
-
runWithProgress
public <V> V runWithProgress(@NotNull VcsOperationProgress progress, @NotNull Callable<V> operation) throws VcsOperationProgressRunner.VcsOperationExceptionDescription copied from interface:VcsOperationProgressRunnerRuns given operation with specified progress- Specified by:
runWithProgressin 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()
-
-