Package jetbrains.buildServer.vcs.impl
Class VcsChangesLoader
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.VcsChangesLoader
-
- All Implemented Interfaces:
BuildPromotionChangesLoader,RecurringChangesLoader
public class VcsChangesLoader extends Object implements BuildPromotionChangesLoader, RecurringChangesLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.vcs.BuildPromotionChangesLoader
BuildPromotionChangesLoader.VcsOperationIncompleteException
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEAMCITY_VCS_CHANGES_LOADER_WAIT_UNTIL_ALL_ROOTS_ARE_LOCKEDstatic StringTEAMCITY_VCS_MULTIPLE_TASKS_CHECK_INTERVAL_MS
-
Constructor Summary
Constructors Constructor Description VcsChangesLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadChangesBetweenRoots(Map<LVcsRootInstance,LVcsRootInstance> pairs, ChangesLoaderContext context)Collects changes for overridden rootsvoidsetExecutors(VcsExecutionServices executors)voidsetFetcher(VcsChangesFetcher fetcher)booleantryLoadChanges(LVcsRootInstance rootInstance, ChangesLoaderContext context)Try to lock a root and collect changes in it
-
-
-
Field Detail
-
TEAMCITY_VCS_MULTIPLE_TASKS_CHECK_INTERVAL_MS
public static final String TEAMCITY_VCS_MULTIPLE_TASKS_CHECK_INTERVAL_MS
- See Also:
- Constant Field Values
-
TEAMCITY_VCS_CHANGES_LOADER_WAIT_UNTIL_ALL_ROOTS_ARE_LOCKED
public static final String TEAMCITY_VCS_CHANGES_LOADER_WAIT_UNTIL_ALL_ROOTS_ARE_LOCKED
- See Also:
- Constant Field Values
-
-
Method Detail
-
setFetcher
public void setFetcher(VcsChangesFetcher fetcher)
-
setExecutors
public void setExecutors(VcsExecutionServices executors)
-
tryLoadChanges
public boolean tryLoadChanges(@NotNull LVcsRootInstance rootInstance, @NotNull ChangesLoaderContext context) throws VcsExceptionTry to lock a root and collect changes in it- Specified by:
tryLoadChangesin interfaceRecurringChangesLoader- Parameters:
rootInstance- VCS root to load changes forcontext- context- Returns:
- true if changes collecting was performed, false otherwise
- Throws:
VcsException- if error occurred
-
loadChangesBetweenRoots
public void loadChangesBetweenRoots(@NotNull Map<LVcsRootInstance,LVcsRootInstance> pairs, @NotNull ChangesLoaderContext context) throws VcsExceptionCollects changes for overridden roots- Specified by:
loadChangesBetweenRootsin interfaceBuildPromotionChangesLoadercontext- context- Throws:
VcsException- if error occurred
-
-