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 String
TEAMCITY_VCS_CHANGES_LOADER_WAIT_UNTIL_ALL_ROOTS_ARE_LOCKED
static String
TEAMCITY_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 void
loadChangesBetweenRoots(Map<LVcsRootInstance,LVcsRootInstance> pairs, ChangesLoaderContext context)
Collects changes for overridden rootsvoid
setExecutors(VcsExecutionServices executors)
void
setFetcher(VcsChangesFetcher fetcher)
boolean
tryLoadChanges(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 VcsException
Try to lock a root and collect changes in it- Specified by:
tryLoadChanges
in 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 VcsException
Collects changes for overridden roots- Specified by:
loadChangesBetweenRoots
in interfaceBuildPromotionChangesLoader
context
- context- Throws:
VcsException
- if error occurred
-
-