Class CleanupExtensionAdapter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.cleanup.CleanupExtensionAdapter
-
- All Implemented Interfaces:
AfterBuildsCleanupExtension,BuildsCleanupExtension,CleanupExtension,ServerExtension,TeamCityExtension
@Deprecated public abstract class CleanupExtensionAdapter extends Object implements CleanupExtension
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description CleanupExtensionAdapter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterCleanup(CleanupProcessState cleanupState)Deprecated.Invoked upon finishing of the main cleanup process.voidcleanupBuildsData(BuildCleanupContext cleanupContext)Deprecated.Invoked afterBuildsCleanupExtension.prepareBuildsData(jetbrains.buildServer.serverSide.cleanup.BuildCleanupContext)is called for all extensions.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.cleanup.BuildsCleanupExtension
getCleanupBuildsDataConcurrencyLevel, getDisplayName, prepareBuildsData
-
-
-
-
Method Detail
-
cleanupBuildsData
public void cleanupBuildsData(@NotNull BuildCleanupContext cleanupContext) throws ExceptionDeprecated.Description copied from interface:BuildsCleanupExtensionInvoked afterBuildsCleanupExtension.prepareBuildsData(jetbrains.buildServer.serverSide.cleanup.BuildCleanupContext)is called for all extensions. There is no guarantee about ordering of the method execution for different extensions, they may be called simultaneously etc. It should perform db operations in current thread otherwise deadlock can occur.- Specified by:
cleanupBuildsDatain interfaceBuildsCleanupExtension- Parameters:
cleanupContext- cleanup context- Throws:
CleanupInterruptedException- if the cleanup process was interruptedException- on any other error
-
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState) throws ExceptionDeprecated.Description copied from interface:AfterBuildsCleanupExtensionInvoked 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:
afterCleanupin interfaceAfterBuildsCleanupExtension- Parameters:
cleanupState- cleanup process state- Throws:
CleanupInterruptedException- if the cleanup process was interruptedException- on any other error
-
-