Class AuditLogCleanerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.audit.AuditLogCleanerImpl
-
- All Implemented Interfaces:
AfterBuildsCleanupExtension
,ServerExtension
,TeamCityExtension
public class AuditLogCleanerImpl extends Object implements AfterBuildsCleanupExtension
-
-
Constructor Summary
Constructors Constructor Description AuditLogCleanerImpl(DBFunctionsProvider db, TestName2Index testName2Index, EventDispatcher<BuildServerListener> eventDispatcher, ExecutorServices executors, AuditLogProvider auditLogProvider, UserModel userModel, UserGroupManager userGroupManager, AgentPoolManager agentPoolManager, RolesManager rolesManager, ServerResponsibility serverResponsibility)
-
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
waitForObjectCleanupTask()
-
-
-
Constructor Detail
-
AuditLogCleanerImpl
public AuditLogCleanerImpl(@NotNull DBFunctionsProvider db, @NotNull TestName2Index testName2Index, @NotNull EventDispatcher<BuildServerListener> eventDispatcher, @NotNull ExecutorServices executors, @NotNull AuditLogProvider auditLogProvider, @NotNull UserModel userModel, @NotNull UserGroupManager userGroupManager, @NotNull AgentPoolManager agentPoolManager, @NotNull RolesManager rolesManager, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState) throws CleanupInterruptedException
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- Throws:
CleanupInterruptedException
- if the cleanup process was interrupted
-
waitForObjectCleanupTask
public void waitForObjectCleanupTask()
-
-