Package jetbrains.buildServer.vcs.impl
Class VcsModificationsCleaner
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.VcsModificationsCleaner
-
- All Implemented Interfaces:
AfterBuildsCleanupExtension
,ServerExtension
,TeamCityExtension
public class VcsModificationsCleaner extends Object implements AfterBuildsCleanupExtension
-
-
Constructor Summary
Constructors Constructor Description VcsModificationsCleaner(ExecutorServicesEx executorServices, VcsModificationsStorage vcsModificationsStorage, BuildTypeIdentifiersManager buildTypeIdManager, SQLRunnerEx sqlRunner, PersonalBuildManager personalBuildManager, EntitiesIdsGroups entitiesIdsGroups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCleanup(CleanupProcessState cleanupState)
Invoked upon finishing of the main cleanup process.void
waitForCleanupToFinish()
-
-
-
Constructor Detail
-
VcsModificationsCleaner
public VcsModificationsCleaner(@NotNull ExecutorServicesEx executorServices, @NotNull VcsModificationsStorage vcsModificationsStorage, @NotNull BuildTypeIdentifiersManager buildTypeIdManager, @NotNull SQLRunnerEx sqlRunner, @NotNull PersonalBuildManager personalBuildManager, @NotNull EntitiesIdsGroups entitiesIdsGroups)
-
-
Method Detail
-
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState)
Description copied from interface:AfterBuildsCleanupExtension
Invoked upon finishing of the main cleanup process. At this point all data for specific builds is deleted.
Note: This extension might not be called for every cleanup run as cleanup process can be interrupted earlier. Extension must check cleanup process state and if it is interrupted, complete its operations and return as quick as possible.- Specified by:
afterCleanup
in interfaceAfterBuildsCleanupExtension
- Parameters:
cleanupState
- cleanup process state
-
waitForCleanupToFinish
public void waitForCleanupToFinish() throws ExecutionException, InterruptedException
-
-