Class CleanupExtensionAdapter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.cleanup.CleanupExtensionAdapter
-
- All Implemented Interfaces:
AfterBuildsCleanupExtension
,BuildsCleanupExtension
,CleanupExtension
,ServerExtension
,TeamCityExtension
@Deprecated public abstract class CleanupExtensionAdapter extends java.lang.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 void
afterCleanup(CleanupProcessState cleanupState)
Deprecated.Invoked upon finishing of the main cleanup process.void
cleanupBuildsData(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 java.lang.Exception
Deprecated.Description copied from interface:BuildsCleanupExtension
Invoked 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:
cleanupBuildsData
in interfaceBuildsCleanupExtension
- Parameters:
cleanupContext
- cleanup context- Throws:
CleanupInterruptedException
- if the cleanup process was interruptedjava.lang.Exception
- on any other error
-
afterCleanup
public void afterCleanup(@NotNull CleanupProcessState cleanupState) throws java.lang.Exception
Deprecated.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 interruptedjava.lang.Exception
- on any other error
-
-