Package jetbrains.buildServer.serverSide
Interface DataCleaner
-
- All Superinterfaces:
ServerExtension
,TeamCityExtension
public interface DataCleaner extends ServerExtension
Deprecated.use BuildsCleanupExtension insteadIf a plugin has some data associated with a build that should be deleted when build is deleted by cleanup process it should implement this interface and register it as server extension with help ofExtensionHolder.registerExtension(Class, String, jetbrains.buildServer.TeamCityExtension)
method.- Author:
- Eugene Zhuravlev Date: May 3, 2006
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
performCleanup(Connection connection, long buildId, CleanupLevel cleanupLevel)
Deprecated.Invoked for each build which is to be cleaned up.
-
-
-
Method Detail
-
performCleanup
void performCleanup(Connection connection, long buildId, CleanupLevel cleanupLevel) throws SQLException
Deprecated.Invoked for each build which is to be cleaned up. At this point data this build_id may be partially deleted, but history entry and test info still exists. Note: DataCleaner is invoked when cleanup is proceeding and it should perform db operations in current thread otherwise deadlock will occur.- Parameters:
connection
- connection to work onbuildId
- Id of build which data is being cleanedcleanupLevel
- specifies what data should be cleaned- Throws:
SQLException
- on database error, it will be logged only.
-
-