Class VcsModificationChecker
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.VcsModificationChecker
-
- All Implemented Interfaces:
ChangesCheckingService
public class VcsModificationChecker extends Object implements ChangesCheckingService
User: kir Class responsibility - check for VCS changes.
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOG
static String
PERIODICAL_CHECK_TASK_RECREATION_DELAY_PROP
static String
TEAMCITY_VCS_MONITOR_CHECKING_FOR_CHANGES_DELAY
static String
VCS_PERIODICAL_CHECKING_FOR_CHANGES_PROP
-
Constructor Summary
Constructors Constructor Description VcsModificationChecker(EventDispatcher<BuildServerListener> multicaster, VersionedSettingsManager settingsRootManager, BranchSpecs branchSpecs, CheckingForChangesScheduler scheduler, MultiNodeTasks multiNodeTasks, VcsChangesLoaderMetrics vcsChangesLoaderMetrics, MultiNodesEvents nodesEvents, TeamCityNodes teamCityNodes, CheckingForChangesTaskPrecondition checkingForChangesTaskPrecondition, VcsRootInstancesManager vcsRootInstancesManager, ServerMetrics serverMetrics)
-
Method Summary
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
TEAMCITY_VCS_MONITOR_CHECKING_FOR_CHANGES_DELAY
public static final String TEAMCITY_VCS_MONITOR_CHECKING_FOR_CHANGES_DELAY
- See Also:
- Constant Field Values
-
PERIODICAL_CHECK_TASK_RECREATION_DELAY_PROP
public static final String PERIODICAL_CHECK_TASK_RECREATION_DELAY_PROP
- See Also:
- Constant Field Values
-
VCS_PERIODICAL_CHECKING_FOR_CHANGES_PROP
public static final String VCS_PERIODICAL_CHECKING_FOR_CHANGES_PROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VcsModificationChecker
public VcsModificationChecker(@NotNull EventDispatcher<BuildServerListener> multicaster, @NotNull VersionedSettingsManager settingsRootManager, @NotNull BranchSpecs branchSpecs, @NotNull CheckingForChangesScheduler scheduler, @NotNull MultiNodeTasks multiNodeTasks, @NotNull VcsChangesLoaderMetrics vcsChangesLoaderMetrics, @NotNull MultiNodesEvents nodesEvents, @NotNull TeamCityNodes teamCityNodes, @NotNull CheckingForChangesTaskPrecondition checkingForChangesTaskPrecondition, @NotNull VcsRootInstancesManager vcsRootInstancesManager, @NotNull ServerMetrics serverMetrics)
-
-
Method Detail
-
isMultipleNodesVcsPollingResponsibility
public boolean isMultipleNodesVcsPollingResponsibility()
-
isMultipleNodesWithCheckingForChangesResponsibility
public static boolean isMultipleNodesWithCheckingForChangesResponsibility(@NotNull List<TeamCityNode> nodes)
-
setVcsChangesLoader
public void setVcsChangesLoader(RecurringChangesLoader vcsChangesLoader)
-
setBuildServer
public void setBuildServer(BuildServerState server)
-
setProjectManager
public void setProjectManager(ProjectManager projectManager)
-
setExecutorServices
public void setExecutorServices(VcsExecutionServices executorServices)
-
setVcsModificationsStorage
public void setVcsModificationsStorage(VcsModificationsStorage vcsModificationsStorage)
-
setTimeService
public void setTimeService(@NotNull TimeService timeService)
-
checkForModificationsAsync
public void checkForModificationsAsync()
-
checkForModificationsAsync
@NotNull public Future checkForModificationsAsync(@NotNull Collection<VcsRootInstance> roots, @NotNull OperationRequestor requestor)
-
forceCheckingFor
public void forceCheckingFor(@NotNull Collection<VcsRootInstance> roots)
Deprecated.since 10.0 useforceCheckingFor(Collection, OperationRequestor)
Left here for a possible usage in older REST plugins with older supported revisions
-
forceCheckingFor
public void forceCheckingFor(@NotNull Collection<VcsRootInstance> roots, @NotNull OperationRequestor requestor)
- Specified by:
forceCheckingFor
in interfaceChangesCheckingService
-
checkForModifications
public void checkForModifications(@NotNull Collection<VcsRootInstance> instances, @NotNull OperationRequestor requestor)
-
ensureModificationChecksComplete
public void ensureModificationChecksComplete()
-
isStale
public boolean isStale()
-
getExecutor
public ExecutorService getExecutor()
-
getTotalDelay
public long getTotalDelay(@NotNull OperationRequestor requestor)
-
-